This commit is contained in:
JandereDev 2022-03-02 16:22:20 +01:00
parent d62f8882d0
commit 284343f156
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -43,6 +43,7 @@ let commands: Command[];
!msg.channel?.server) return; !msg.channel?.server) return;
if (!msg.member) await msg.channel.server.fetchMember(msg.author_id); if (!msg.member) await msg.channel.server.fetchMember(msg.author_id);
if (msg.author?.bot) return;
// If we can't reply to the message, return // If we can't reply to the message, return
if (!hasPermForChannel(await getOwnMemberInServer(msg.channel.server), msg.channel, 'SendMessage')) { if (!hasPermForChannel(await getOwnMemberInServer(msg.channel.server), msg.channel, 'SendMessage')) {