Skip to content

Commit 5ae96ac

Browse files
committed
fix
1 parent 2eaee66 commit 5ae96ac

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/handlers/AutocompleteHandler.ts

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export async function AutocompleteHandler(interaction: AutocompleteInteraction)
2828
guild: interaction.guild,
2929
guildId: interaction.guildId,
3030
user: interaction.user,
31-
// @ts-expect-error Further research into this is required. (Contact discord.js)
3231
member: interaction.member,
3332
command: command,
3433
argument: argument,

src/handlers/ComponentHandler.ts

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export async function ComponentHandler(interaction: MessageComponentInteraction)
3232
guild: interaction.guild,
3333
guildId: interaction.guildId,
3434
user: interaction.user,
35-
// @ts-expect-error Further research into this is required. (Contact discord.js)
3635
member: interaction.member,
3736
component: component,
3837
customId: interaction.customId,

src/handlers/InteractionCommandHandler.ts

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export async function InteractionCommandHandler(interaction: CommandInteraction
3131
guild: interaction.guild,
3232
guildId: interaction.guildId,
3333
user: interaction.user,
34-
// @ts-expect-error Further research into this is required. (Contact discord.js)
3534
member: interaction.member,
3635
command: command,
3736
// @ts-expect-error Further research into this is required.

src/lib/structures/contexts/AutocompleteContext.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import {Context} from './Context';
1+
import {Context, ContextOptions} from './Context';
22
import {CacheType} from 'discord.js';
33
import {Command, CommandArgument, CommandArgumentChoice} from '../Command';
44
import {GClient} from '../../GClient';
55
import {Argument} from '../Argument';
66

7-
export interface AutocompleteContextOptions<Cached extends CacheType = CacheType> extends Context<Cached> {
7+
export interface AutocompleteContextOptions<Cached extends CacheType = CacheType> extends ContextOptions<Cached> {
88
command: Command;
99
argument: CommandArgument | Argument;
1010
value: string | number;

0 commit comments

Comments
 (0)