mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Откат
This commit is contained in:
parent
c5343ad76e
commit
ba19dd7ca0
1 changed files with 47 additions and 47 deletions
|
@ -1,4 +1,4 @@
|
||||||
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, SelectMenuBuilder, ChannelType } = require("discord.js");
|
const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, SelectMenuBuilder } = require("discord.js");
|
||||||
const BaseCommand = require("../../base/BaseCommand"),
|
const BaseCommand = require("../../base/BaseCommand"),
|
||||||
fetch = require("node-fetch");
|
fetch = require("node-fetch");
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ class NSFW extends BaseCommand {
|
||||||
.setDescription(client.translate("nsfw/nsfw:DESCRIPTION")),
|
.setDescription(client.translate("nsfw/nsfw:DESCRIPTION")),
|
||||||
aliases: [],
|
aliases: [],
|
||||||
dirname: __dirname,
|
dirname: __dirname,
|
||||||
guildOnly: false,
|
guildOnly: true,
|
||||||
ownerOnly: false
|
ownerOnly: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,8 @@ class NSFW extends BaseCommand {
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
|
|
||||||
if (interaction.channel.type === ChannelType.DM || interaction.channel.nsfw) {
|
if (!interaction.channel.nsfw) return interaction.replyT("misc:NSFW_COMMAND", null, { ephemeral: true, edit: true });
|
||||||
|
|
||||||
const tags = ["hentai", "ecchi", "lewdanimegirls", "hentaifemdom", "animefeets", "animebooty", "biganimetiddies", "sideoppai", "ahegao"].map(tag =>
|
const tags = ["hentai", "ecchi", "lewdanimegirls", "hentaifemdom", "animefeets", "animebooty", "biganimetiddies", "sideoppai", "ahegao"].map(tag =>
|
||||||
JSON.parse(JSON.stringify({
|
JSON.parse(JSON.stringify({
|
||||||
label: tag,
|
label: tag,
|
||||||
|
@ -87,7 +88,6 @@ class NSFW extends BaseCommand {
|
||||||
components: []
|
components: []
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else return interaction.replyT("misc:NSFW_COMMAND", null, { ephemeral: true, edit: true });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue