Replaced clang format with prettuier (sadly)
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits, userMention } from "discord.js"
|
||||
import {
|
||||
ContextMenuCommandBuilder,
|
||||
ApplicationCommandType,
|
||||
PermissionFlagsBits,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { ContextMenu } from "../interfaces"
|
||||
|
||||
export = {
|
||||
@@ -13,24 +18,31 @@ export = {
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages),
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const { targetId } = interaction
|
||||
const message = await interaction.channel!.messages.fetch(targetId)
|
||||
|
||||
if (!message) {
|
||||
return interaction.reply({ content: "That user does not exist.", ephemeral: true })
|
||||
return interaction.reply({
|
||||
content: "That user does not exist.",
|
||||
ephemeral: true,
|
||||
})
|
||||
}
|
||||
|
||||
const target = message.author
|
||||
|
||||
await message.reply({
|
||||
embeds: [{
|
||||
title: "Congratulations!",
|
||||
description: `GG to ${userMention(target.id)}!`,
|
||||
}]
|
||||
embeds: [
|
||||
{
|
||||
title: "Congratulations!",
|
||||
description: `GG to ${userMention(target.id)}!`,
|
||||
},
|
||||
],
|
||||
})
|
||||
await message.react("🎉")
|
||||
|
||||
await interaction.reply({ content: "Sent a congrats message", ephemeral: true })
|
||||
}
|
||||
} as ContextMenu
|
||||
await interaction.reply({
|
||||
content: "Sent a congrats message",
|
||||
ephemeral: true,
|
||||
})
|
||||
},
|
||||
} as ContextMenu
|
||||
|
||||
Reference in New Issue
Block a user