mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 18:00:08 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
f93bcf9836
commit
823a0754e4
57
src/bot.ts
57
src/bot.ts
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user