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

This commit is contained in:
2023-05-22 01:55:09 +09:00
parent 9fcb24533a
commit fee769714d
2 changed files with 18 additions and 14 deletions
+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];
}