Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Command, version: klasaVersion } = require('klasa');
- const { version: discordVersion } = require('discord.js');
- module.exports = class extends Command {
- constructor(...args) {
- super(...args, {
- name: 'croles',
- enabled: true,
- runIn: ['text', 'dm'],
- cooldown: 0,
- aliases: [],
- permLevel: 0,
- botPerms: ['EMBED_LINKS'],
- requiredSettings: [],
- description: 'Tells the user how to get their discord role.',
- quotedStringSupport: false,
- usage: '',
- usageDelim: undefined
- });
- }
- async run(msg, ...params) {
- const embed = new this.client.methods.Embed();
- embed.setColor(Math.floor(Math.random()*16777215))
- embed.setAuthor(this.client.user.username, this.client.user.displayAvatarURL());
- embed.addField('我刚买了菜单 如何获得我discord上的身份','前往 https://d3sk1ng.com/index.php?threads/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%BE%97%E6%88%91%E4%BB%ACdiscord%E4%B8%8A%E7%9A%84%E8%BA%AB%E4%BB%BD.2763/');
- embed.addField('按照以上步骤即可获得身份.');
- embed.addField('如果还有更多的问题请到 #chinese-support 询问');
- msg.send(embed).catch(console.error);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment