nsfw bug fixing

This commit is contained in:
night0721 2022-03-25 01:51:00 +08:00
parent 1f8c857915
commit aa4e4bb391
2 changed files with 1 additions and 1 deletions

View file

@ -83,7 +83,7 @@ client.on("interactionCreate", async interaction => {
if (cmd.Level) { if (cmd.Level) {
if (!data.Guild.Level) return; if (!data.Guild.Level) return;
} }
if (cmd.directory == "NSFW" && !data.Guild?.NSFW) { if (cmd.name == "nsfw" && !data.Guild?.NSFW) {
interaction.followUp({ interaction.followUp({
content: "NSFW commands have been disabled in this server", content: "NSFW commands have been disabled in this server",
}); });