Removed deprecated method
This commit is contained in:
@@ -17,8 +17,7 @@ export default {
|
||||
.setName("query")
|
||||
.setDescription("The anime to search for")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -38,8 +38,7 @@ export default {
|
||||
{ name: "7 days", value: 7 }
|
||||
)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -17,8 +17,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("botinfo")
|
||||
.setDescription("Get information about the bot")
|
||||
.setDMPermission(false),
|
||||
.setDescription("Get information about the bot"),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
const castedDeps = dependencies as { [key: string]: string }
|
||||
|
||||
@@ -20,8 +20,7 @@ export default {
|
||||
.setMinLength(3)
|
||||
.setMaxLength(16)
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({})
|
||||
|
||||
@@ -18,8 +18,7 @@ export default {
|
||||
.setDescription("Amount of messages to clear")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
@@ -28,7 +28,6 @@ export default {
|
||||
.setDescription("The value to set")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
|
||||
@@ -36,8 +36,7 @@ export default {
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
const subcommand = interaction.options.getSubcommand()
|
||||
|
||||
@@ -19,8 +19,7 @@ export default {
|
||||
.setDescription("The ign to lookup.")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -21,7 +21,6 @@ export default {
|
||||
.setDescription("The user to force unverify")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
|
||||
@@ -21,8 +21,7 @@ export default {
|
||||
.setDescription("The user to force update")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -25,8 +25,7 @@ export default {
|
||||
.setName("ign")
|
||||
.setDescription("The user's in-game name.")
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -74,8 +74,7 @@ export default {
|
||||
.setName("amount")
|
||||
.setDescription("The amount of guild members to show. [Default: 10]")
|
||||
)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
const subcommand = interaction.options.getSubcommand()
|
||||
|
||||
@@ -10,8 +10,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("help")
|
||||
.setDescription("List's all commands usable by a member")
|
||||
.setDMPermission(false),
|
||||
.setDescription("List's all commands usable by a member"),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
@@ -11,8 +11,7 @@ export default {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("instructions")
|
||||
.setDescription("Instructions for verification")
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.reply({
|
||||
|
||||
@@ -24,8 +24,7 @@ export default {
|
||||
.setName("reason")
|
||||
.setDescription("Reason for kicking the member.")
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -79,7 +79,6 @@ export default {
|
||||
.setName("leave")
|
||||
.setDescription("Leave the voice channel")
|
||||
)
|
||||
.setDMPermission(false)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
|
||||
@@ -10,8 +10,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("ping")
|
||||
.setDescription("Get's the bot's ping.")
|
||||
.setDMPermission(false),
|
||||
.setDescription("Get's the bot's ping."),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -17,8 +17,7 @@ export default {
|
||||
.setName("user")
|
||||
.setDescription("User to show pp size")
|
||||
.setRequired(false)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
const user = (interaction.options.getUser("user") || interaction.user) as User
|
||||
|
||||
@@ -26,8 +26,7 @@ export default {
|
||||
.setDescription("The reason for removing the user.")
|
||||
.setRequired(false)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -11,8 +11,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("reqs")
|
||||
.setDescription("Displays the requirements for the guild.")
|
||||
.setDMPermission(false),
|
||||
.setDescription("Displays the requirements for the guild."),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.reply({
|
||||
|
||||
@@ -23,8 +23,7 @@ export default {
|
||||
.setDescription("The channel to send the message to.")
|
||||
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
@@ -24,8 +24,7 @@ export default {
|
||||
.setDescription("The nickname to set")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames),
|
||||
|
||||
async execute({ interaction }) {
|
||||
const member = interaction.options.getMember("user") as GuildMember
|
||||
|
||||
@@ -72,8 +72,7 @@ export default {
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
const subcommand = interaction.options.getSubcommand()
|
||||
|
||||
@@ -23,8 +23,7 @@ export default {
|
||||
.setDescription("The channel to set the slowmode of.")
|
||||
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
@@ -48,8 +48,7 @@ export default {
|
||||
.setName("updateall")
|
||||
.setDescription("Update the discord roles of all guild members")
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
const subcommand = interaction.options.getSubcommand()
|
||||
|
||||
@@ -31,8 +31,7 @@ export default {
|
||||
.setName("reason")
|
||||
.setDescription("The reason for the timeout")
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -25,8 +25,7 @@ export default {
|
||||
.setDescription("The reason for unbanning the user")
|
||||
.setRequired(false)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -14,8 +14,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("update")
|
||||
.setDescription("Update your discord roles.")
|
||||
.setDMPermission(false),
|
||||
.setDescription("Update your discord roles."),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -19,8 +19,7 @@ export default {
|
||||
.setMinLength(3)
|
||||
.setMaxLength(16)
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -23,8 +23,7 @@ export default {
|
||||
.setMinLength(3)
|
||||
.setMaxLength(16)
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -12,8 +12,7 @@ export default {
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("whoami")
|
||||
.setDescription("Get your user info")
|
||||
.setDMPermission(false),
|
||||
.setDescription("Get your user info"),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -19,8 +19,7 @@ export default {
|
||||
.setDescription("The user to get the ign of.")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
Reference in New Issue
Block a user