Replace all instances of this.specialArgs with this.options, update docs
This commit is contained in:
parent
d469d36a59
commit
df91afee1f
14 changed files with 50 additions and 32 deletions
|
@ -3,7 +3,7 @@ const mentionRegex = /^<?[@#]?[&!]?(\d+)>?$/;
|
|||
|
||||
class AvatarCommand extends Command {
|
||||
async run() {
|
||||
const member = this.specialArgs.member ?? this.args[0];
|
||||
const member = this.options.member ?? this.args[0];
|
||||
const self = await this.client.getRESTUser(this.author.id);
|
||||
if (this.type === "classic" && this.message.mentions[0]) {
|
||||
return this.message.mentions[0].dynamicAvatarURL(null, 512);
|
||||
|
|
|
@ -3,7 +3,7 @@ const mentionRegex = /^<?[@#]?[&!]?(\d+)>?$/;
|
|||
|
||||
class BannerCommand extends Command {
|
||||
async run() {
|
||||
const member = this.specialArgs.member ?? this.args[0];
|
||||
const member = this.options.member ?? this.args[0];
|
||||
const self = await this.client.getRESTUser(this.author.id);
|
||||
if (this.type === "classic" && this.message.mentions[0]) {
|
||||
return this.message.mentions[0].dynamicBannerURL(null, 512) ?? "This user doesn't have a banner!";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue