Moved to using an object for execute args
This commit is contained in:
@@ -11,7 +11,7 @@ export = {
|
||||
.setType(ApplicationCommandType.Message)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages),
|
||||
|
||||
async execute(interaction) {
|
||||
async execute({ interaction }) {
|
||||
const { targetId } = interaction
|
||||
const message = await interaction.channel!.messages.fetch(targetId)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export = {
|
||||
.setType(ApplicationCommandType.User)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames),
|
||||
|
||||
async execute(interaction) {
|
||||
async execute({ interaction }) {
|
||||
const { targetId } = interaction
|
||||
const target = await interaction.guild!.members.fetch(targetId)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export = {
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
|
||||
async execute(interaction) {
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
const targetId = interaction.targetId
|
||||
|
||||
Reference in New Issue
Block a user