change: prettier code

This commit is contained in:
Skillz4Killz
2021-10-12 21:30:41 +00:00
committed by GitHub Action
parent f93bcf9836
commit 823a0754e4
2 changed files with 34 additions and 25 deletions

View File

@@ -506,30 +506,39 @@ export interface EventHandlers {
channelDelete: (bot: Bot, channel: DiscordenoChannel) => any;
channelPinsUpdate: (bot: Bot, data: { guildId?: bigint; channelId: bigint; lastPinTimestamp?: number }) => any;
channelUpdate: (bot: Bot, channel: DiscordenoChannel, oldChannel: DiscordenoChannel) => any;
stageInstanceCreate: (bot: Bot, data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}) => any;
stageInstanceDelete: (bot: Bot, data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}) => any;
stageInstanceUpdate: (bot: Bot, data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}) => any;
stageInstanceCreate: (
bot: Bot,
data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}
) => any;
stageInstanceDelete: (
bot: Bot,
data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}
) => any;
stageInstanceUpdate: (
bot: Bot,
data: {
id: bigint;
guildId: bigint;
channelId: bigint;
topic: string;
privacyLevel: number;
discoverableDisabled: boolean;
}
) => any;
}
export function createBotConstants() {

View File

@@ -33,7 +33,7 @@ async function guildSweeper(bot: Bot, guild: DiscordenoGuild) {
async function channelSweeper(bot: Bot, channel: DiscordenoChannel, key: bigint) {
// If this is in a guild and the guild was dispatched, then we can dispatch the channel
if (channel.guildId && await bot.cache.dispatchedGuildIds.has(channel.guildId)) {
if (channel.guildId && (await bot.cache.dispatchedGuildIds.has(channel.guildId))) {
await bot.cache.dispatchedChannelIds.set(channel.id);
return true;
}