diff --git a/src/api/handlers/channel.ts b/src/api/handlers/channel.ts index 7f4d81ad5..6338bec54 100644 --- a/src/api/handlers/channel.ts +++ b/src/api/handlers/channel.ts @@ -303,11 +303,10 @@ export async function getChannelWebhooks(channelID: string) { ) { throw new Error(Errors.MISSING_MANAGE_WEBHOOKS); } - return await RequestManager.get( + + return RequestManager.get( endpoints.CHANNEL_WEBHOOKS(channelID), - ) as Promise< - WebhookPayload[] - >; + ) as Promise; } interface EditChannelRequest { diff --git a/src/api/handlers/guild.ts b/src/api/handlers/guild.ts index 47449734c..2c15078df 100644 --- a/src/api/handlers/guild.ts +++ b/src/api/handlers/guild.ts @@ -131,7 +131,7 @@ export async function createGuildChannel( type: options?.type || ChannelTypes.GUILD_TEXT, })) as ChannelCreatePayload; - return await structures.createChannel(result); + return structures.createChannel(result); } /** Delete a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. */ diff --git a/src/util/permissions.ts b/src/util/permissions.ts index 66cf82f84..b84c74388 100644 --- a/src/util/permissions.ts +++ b/src/util/permissions.ts @@ -191,7 +191,7 @@ export async function hasChannelPermissions( if (permissions.every((perm) => allowedPermissions.has(perm))) return true; // Some permission was not explicitly allowed so we default to checking role perms directly - return await memberIDHasPermission(memberID, guild.id, permissions); + return memberIDHasPermission(memberID, guild.id, permissions); } /** This function converts a bitwise string to permission strings */