Skip to content

Commit 4ca3e67

Browse files
committed
fix helper
1 parent afd0a54 commit 4ca3e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/inhibitors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TextChannel } from 'discord.js';
33
import { trustedRoleId } from '../env';
44

55
export const isTrustedMember: Inhibitor = async (msg, client) => {
6-
if (!msg.guild || !msg.member || !(msg.channel instanceof TextChannel)) {
6+
if (!msg.guild || !msg.member || !msg.channel.isText()) {
77
return ":warning: you can't use that command here.";
88
}
99

0 commit comments

Comments
 (0)