Skip to content

Commit

Permalink
add announce method
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed Apr 2, 2022
1 parent 94b56f1 commit 304d094
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/chat/src/ChatClient.ts
Expand Up @@ -2195,6 +2195,16 @@ export class ChatClient extends IrcClient {
});
}

/**
* Sends an announcement to a channel.
*
* @param channel The channel to send the announcement to.
* @param message The content of the announcement.
*/
async announce(channel: string, message: string): Promise<void> {
await this.say(channel, `/announce ${message}`);
}

/**
* Sends a message to a channel.
*
Expand Down

0 comments on commit 304d094

Please sign in to comment.