mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
deletemess using channel.guildID
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user