deletemess using channel.guildID

This commit is contained in:
Skillz
2020-08-25 17:07:40 -04:00
parent fb408e3aac
commit 1297fb8476

View File

@@ -19,7 +19,7 @@ export async function deleteMessage(
if (message.author.id !== botID) {
// This needs to check the channels permission not the guild permission
if (
!message.guildID ||
!message.channel.guildID ||
!botHasChannelPermissions(
message.channel.id,
[Permissions.MANAGE_MESSAGES],