Replaced clang format with prettuier (sadly)

This commit is contained in:
2023-12-28 16:47:52 +01:00
parent ca5bbd0b81
commit 117140fe9d
99 changed files with 13519 additions and 12011 deletions

View File

@@ -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