mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { stripIndents } = require('common-tags');
|
||||
|
||||
module.exports = class StatusButtonCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'status-button',
|
||||
aliases: ['c99-nl'],
|
||||
group: 'edit-avatar',
|
||||
memberName: 'status-button',
|
||||
description: 'Creates a Discord status button from c99.nl.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Discord Status Button',
|
||||
url: 'https://discord.c99.nl/',
|
||||
reason: 'API'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
prompt: 'Which user would you like to get the status button of?',
|
||||
type: 'user',
|
||||
default: msg => msg.author
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { user }) {
|
||||
if (user.bot) return msg.reply('You cannot get the status button of a bot.');
|
||||
return msg.say(stripIndents`
|
||||
_Getting "User not found"? Visit <https://discord.c99.nl/> for more information._
|
||||
https://discord.c99.nl/widget/theme-1/${user.id}.png
|
||||
`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user