wolfcountBot/commands/Management/SetStatus.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-05-24 04:31:35 -04:00
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');
const client = require('../../index.js');
2023-04-28 07:48:43 -04:00
2023-05-24 04:31:35 -04:00
developerList = [
2023-04-28 07:48:43 -04:00
'213966480621043712',
];
module.exports = {
2023-05-24 04:31:35 -04:00
name: "setstatus",
2023-04-28 07:48:43 -04:00
private: true,
2023-05-24 04:31:35 -04:00
description: "Set status",
2023-04-28 07:48:43 -04:00
run: async (client, interaction) => {
2023-05-24 04:31:35 -04:00
if (developerList.includes(interaction.user.id)) {
2023-04-28 07:48:43 -04:00
2023-05-24 04:31:35 -04:00
client.user.setStatus('dnd')
2023-04-28 07:48:43 -04:00
const embed = new EmbedBuilder()
.setColor("#FF0000")
2023-05-24 04:31:35 -04:00
.setTitle("Status set")
.setDescription(`Bot status set to predefined value`)
2023-04-28 07:48:43 -04: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 04:31:35 -04:00
};