wolfcountBot/commands/Management/SetStatus.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-05-24 08:31:35 +00:00
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');
const client = require('../../index.js');
2023-04-28 11:48:43 +00:00
2023-05-24 08:31:35 +00:00
developerList = [
2023-04-28 11:48:43 +00:00
'213966480621043712',
];
module.exports = {
2023-05-24 08:31:35 +00:00
name: "setstatus",
2023-04-28 11:48:43 +00:00
private: true,
2023-05-24 08:31:35 +00:00
description: "Set status",
2023-04-28 11:48:43 +00:00
run: async (client, interaction) => {
2023-05-24 08:31:35 +00:00
if (developerList.includes(interaction.user.id)) {
2023-04-28 11:48:43 +00:00
2023-05-24 08:31:35 +00:00
client.user.setStatus('dnd')
2023-04-28 11:48:43 +00:00
const embed = new EmbedBuilder()
.setColor("#FF0000")
2023-05-24 08:31:35 +00:00
.setTitle("Status set")
.setDescription(`Bot status set to predefined value`)
2023-04-28 11:48:43 +00:00
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
} else {
const embed = new EmbedBuilder()
.setColor("#FF0000")
.setTitle("🐺 no perms")
.setDescription(`You have no perms to do this.`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
}
},
2023-05-24 08:31:35 +00:00
};