We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b73113 commit 8d4af38Copy full SHA for 8d4af38
playground/commands/moderations/ban.ts
@@ -16,8 +16,8 @@ export default defineCommand(
16
},
17
userPermissions: ['Administrator']
18
19
- (_, interaction, context) => {
20
- const { user, reason } = context.options
+ async (_, interaction, ctx) => {
+ const { user, reason } = ctx.options
21
22
interaction.reply(`Banned user ${user} for ${reason}`)
23
}
playground/modals/form.ts
@@ -16,8 +16,8 @@ export default defineModal(
- (interaction, context) => {
- const { color } = context.inputs
+ (interaction, ctx) => {
+ const { color } = ctx.inputs
interaction.reply(`Submitted color: ${color}`)
0 commit comments