feat: System MessageTarget를 빠르게 생성하는 함수

This commit is contained in:
Hide_D committed 2023-05-22 01:55:09 +09:00
1 parent 9fcb24533a
commit fee769714d
2 files changed
+18 -14

No files matched your search

+1 -1
View File
@@ -381,7 +381,7 @@ class Message
* @param string $msg
*/
public static function sendPrivateMsgAsNotice(array|int|MessageTarget $targets, string $msg): void{
$src = new MessageTarget(0, '', 0, 'System', '#000000');
$src = MessageTarget::buildSystemTarget();
if(is_int($targets)){
$targets = [$targets];
}