We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afd0a54 commit 4ca3e67Copy full SHA for 4ca3e67
src/util/inhibitors.ts
@@ -3,7 +3,7 @@ import { TextChannel } from 'discord.js';
3
import { trustedRoleId } from '../env';
4
5
export const isTrustedMember: Inhibitor = async (msg, client) => {
6
- if (!msg.guild || !msg.member || !(msg.channel instanceof TextChannel)) {
+ if (!msg.guild || !msg.member || !msg.channel.isText()) {
7
return ":warning: you can't use that command here.";
8
}
9
0 commit comments