Updated imports and formating

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-16 17:05:15 +01:00
parent ee0250ed5e
commit 5661bc66bb
49 changed files with 819 additions and 491 deletions

View File

@@ -1,4 +1,8 @@
import { ChannelType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import {
ChannelType,
PermissionFlagsBits,
SlashCommandBuilder,
} from "discord.js"
import { color, devMessage } from "config/options.json"
import { Command } from "interfaces"
import setup from "./counting/setup"
@@ -25,7 +29,10 @@ export = {
.setName("channel")
.setDescription("The channel to setup counting in")
.setRequired(true)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
),
),
)
.addSubcommand(subcommand =>
@@ -36,8 +43,8 @@ export = {
option
.setName("user")
.setDescription("The user to ban")
.setRequired(true)
)
.setRequired(true),
),
)
.addSubcommand(subcommand =>
subcommand
@@ -47,8 +54,8 @@ export = {
option
.setName("user")
.setDescription("The user to ban")
.setRequired(true)
)
.setRequired(true),
),
)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false),
@@ -79,8 +86,7 @@ export = {
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url:
interaction.guild!.iconURL() || undefined,
icon_url: interaction.guild!.iconURL() || undefined,
},
},
],