Skip to content

Commit

Permalink
Dont mention in server notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Jul 13, 2024
1 parent 6072cec commit 100e60f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ client.on('interactionCreate', async interaction => {

client.on(Events.ServerNotification, (message: string) => {
const channel = globalClient.channels.cache.get(Channel.Notifications);
if (channel) (channel as TextChannel).send(message);
if (channel) {
(channel as TextChannel).send({ content: message, allowedMentions: { parse: [], users: [], roles: [] } });
}
});

client.on(Events.EconomyLog, async (message: string) => {
Expand Down

0 comments on commit 100e60f

Please sign in to comment.