8.2.1: quick patch for function call

This commit is contained in:
Skillz
2020-08-25 15:40:09 -04:00
parent 3479c7d549
commit fb408e3aac
2 changed files with 3 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ name: Discordeno
description: >-
Discord Deno TypeScript API library wrapper(Officially vetted library by
Discord Team) https://discordeno.netlify.app
version: 8.2.0
version: 8.2.1
stable: true
files:
- ./src/**/*

View File

@@ -1,7 +1,6 @@
import { Message, createMessage } from "../structures/message.ts";
import { delay } from "https://deno.land/std@0.61.0/async/delay.ts";
import { botID } from "../module/client.ts";
import { hasChannelPermission } from "./channel.ts";
import { Permissions } from "../types/permission.ts";
import { Errors } from "../types/errors.ts";
import { RequestManager } from "../module/requestManager.ts";
@@ -21,9 +20,8 @@ export async function deleteMessage(
// This needs to check the channels permission not the guild permission
if (
!message.guildID ||
!hasChannelPermission(
message.channel,
botID,
!botHasChannelPermissions(
message.channel.id,
[Permissions.MANAGE_MESSAGES],
)
) {