Skip to content

Commit d6374fb

Browse files
committed
uncached improvement?
1 parent d8e6dca commit d6374fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

structures/Kisaragi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ export class Kisaragi extends Client {
447447

448448
public isUncachedInteraction = (interaction: ChatInputCommandInteraction | ContextMenuCommandInteraction |
449449
ButtonInteraction | StringSelectMenuInteraction) => {
450-
return !interaction.guild && interaction.channel?.type !== ChannelType.DM
450+
return !interaction.inCachedGuild() && interaction.channel?.type !== ChannelType.DM
451451
}
452452

453453
public shardedGuildCount = async () => {

0 commit comments

Comments
 (0)