Envoi de message à plusieurs acteurs

This commit is contained in:
Vincent Vandemeulebrouck 2023-11-23 16:11:38 +01:00
parent b5db2a9ef3
commit 135546467d

View File

@ -118,9 +118,10 @@ export class ChatUtility {
}
/* -------------------------------------------- */
static getWhisperRecipientsAndGMs(name) {
let recep1 = ChatMessage.getWhisperRecipients(name) || [];
return recep1.concat(ChatMessage.getWhisperRecipients('GM'));
static getWhisperRecipientsAndGMs(...names) {
let recipients = [...ChatMessage.getWhisperRecipients('GM')]
names.forEach(name => recipients.push(...ChatMessage.getWhisperRecipients(name)))
return recipients
}
/* -------------------------------------------- */