mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-02-16 22:38:30 +05:00
Ура
This commit is contained in:
parent
0a5720892a
commit
c5343ad76e
2 changed files with 51 additions and 51 deletions
|
@ -34,8 +34,7 @@ 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.nsfw || interaction.channel.type === ChannelType.DM) return interaction.replyT("misc:NSFW_COMMAND", null, { ephemeral: true, edit: true });
|
if (interaction.channel.type === ChannelType.DM || interaction.channel.nsfw) {
|
||||||
|
|
||||||
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,
|
||||||
|
@ -88,6 +87,7 @@ class NSFW extends BaseCommand {
|
||||||
components: []
|
components: []
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
} else return interaction.replyT("misc:NSFW_COMMAND", null, { ephemeral: true, edit: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
index.js
2
index.js
|
@ -4,7 +4,7 @@ const { GatewayIntentBits } = require("discord.js"),
|
||||||
JaBa = require("./base/JaBa");
|
JaBa = require("./base/JaBa");
|
||||||
|
|
||||||
const client = new JaBa({
|
const client = new JaBa({
|
||||||
intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildBans, GatewayIntentBits.GuildEmojisAndStickers, GatewayIntentBits.GuildIntegrations, GatewayIntentBits.GuildInvites, GatewayIntentBits.GuildVoiceStates, GatewayIntentBits.GuildPresences, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildMessageTyping, GatewayIntentBits.MessageContent ],
|
intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildBans, GatewayIntentBits.GuildEmojisAndStickers, GatewayIntentBits.GuildIntegrations, GatewayIntentBits.GuildInvites, GatewayIntentBits.GuildVoiceStates, GatewayIntentBits.GuildPresences, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildMessageTyping, GatewayIntentBits.MessageContent, GatewayIntentBits.DirectMessageTyping, GatewayIntentBits.DirectMessages, GatewayIntentBits.DirectMessageReactions ],
|
||||||
allowedMentions: { parse: ["everyone", "roles", "users"] }
|
allowedMentions: { parse: ["everyone", "roles", "users"] }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue