File tree Expand file tree Collapse file tree
apps/test-bot/src/app/commands/(interactions)
packages/commandkit/src/app/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
1010 StringSelectMenu ,
1111 StringSelectMenuOption ,
1212 FileUpload ,
13+ UserSelectMenu ,
1314} from 'commandkit' ;
1415import { MessageFlags } from 'discord.js' ;
1516
@@ -68,6 +69,14 @@ export async function chatInput(ctx: ChatInputCommandContext) {
6869 />
6970 </ StringSelectMenu >
7071 </ Label >
72+ < Label label = "Member" description = "The target of the command" >
73+ < UserSelectMenu
74+ customId = "member"
75+ minValues = { 1 }
76+ maxValues = { 1 }
77+ defaultValues = { [ ctx . interaction . user . id ] }
78+ />
79+ </ Label >
7180 </ Modal >
7281 ) ;
7382
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ export class Context<
234234 /**
235235 * The client instance.
236236 */
237- public readonly client : Client ;
237+ public readonly client : Client < true > ;
238238
239239 /**
240240 * The command that this context belongs to.
@@ -265,7 +265,7 @@ export class Context<
265265 // these are assigned to readonly properties to make them accessible via object destructuring
266266 this . interaction = config . interaction ;
267267 this . message = config . message ;
268- this . client = commandkit . client ;
268+ this . client = commandkit . client as Client < true > ;
269269 this . #store = config . environment ?. store ?? config . store ?? new Collection ( ) ;
270270 this . command = config . command ;
271271
You can’t perform that action at this time.
0 commit comments