more refactoring

This commit is contained in:
Skillz
2020-09-16 12:18:34 -04:00
parent 5e0c4e6432
commit f07636338c
3 changed files with 6 additions and 51 deletions
+1 -2
View File
@@ -21,9 +21,8 @@ export async function deleteMessage(
if (message.author.id !== botID) {
// This needs to check the channels permission not the guild permission
if (
!message.channel.guildID ||
!botHasChannelPermissions(
message.channel.id,
message.channelID,
[Permissions.MANAGE_MESSAGES],
)
) {