Skip to content

Commit 8d4af38

Browse files
committed
chore(playground): replace abbreviate context to ctx
1 parent 8b73113 commit 8d4af38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

playground/commands/moderations/ban.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export default defineCommand(
1616
},
1717
userPermissions: ['Administrator']
1818
},
19-
(_, interaction, context) => {
20-
const { user, reason } = context.options
19+
async (_, interaction, ctx) => {
20+
const { user, reason } = ctx.options
2121

2222
interaction.reply(`Banned user ${user} for ${reason}`)
2323
}

playground/modals/form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export default defineModal(
1616
}
1717
}
1818
},
19-
(interaction, context) => {
20-
const { color } = context.inputs
19+
(interaction, ctx) => {
20+
const { color } = ctx.inputs
2121

2222
interaction.reply(`Submitted color: ${color}`)
2323
}

0 commit comments

Comments
 (0)