mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
8.2.1: quick patch for function call
This commit is contained in:
2
egg.yml
2
egg.yml
@@ -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/**/*
|
||||
|
||||
@@ -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],
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user