Skip to content

Commit

Permalink
fix: remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Qjuh committed Nov 28, 2023
1 parent 10b9880 commit c1bd547
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/discord.js/typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1508,26 +1508,6 @@ declare const applicationCommandSubGroup: ApplicationCommandSubGroup;
applicationCommandSubGroup.options = [] as const;
}

declare const userContextMenuCommandInteraction: UserContextMenuCommandInteraction;
{
expectType<User | null>(userContextMenuCommandInteraction.options.getUser('useroption'));
expectType<User>(userContextMenuCommandInteraction.options.getUser('useroption', true));
expectType<GuildMember | APIInteractionDataResolvedGuildMember | null>(
userContextMenuCommandInteraction.options.getMember('useroption'),
);
if (userContextMenuCommandInteraction.inCachedGuild()) {
expectType<GuildMember | null>(userContextMenuCommandInteraction.options.getMember('useroption'));
}
}

declare const messageContextMenuCommandInteraction: MessageContextMenuCommandInteraction;
{
expectType<Message>(messageContextMenuCommandInteraction.options.getMessage('message', true));
expectType<GuildMember | APIInteractionDataResolvedGuildMember | null>(
userContextMenuCommandInteraction.options.getMember('useroption'),
);
}

declare const autoModerationRuleManager: AutoModerationRuleManager;
{
expectType<Promise<AutoModerationRule>>(autoModerationRuleManager.fetch('1234567890'));
Expand Down

0 comments on commit c1bd547

Please sign in to comment.