default prefix
This commit is contained in:
parent
0a7ceb0aa5
commit
4ab77f9b71
@ -47,7 +47,7 @@ class MessageWrapper {
|
||||
}
|
||||
|
||||
get prefix() {
|
||||
return this.guild ? this.guild.prefix : this.client.getUserWrapper(this.author.id, false).prefix;
|
||||
return this.guild ? this.guild.prefix : this.client.getUserWrapper(this.author.id, false)?.prefix || this.client.prefix;
|
||||
}
|
||||
|
||||
get subcommand() {
|
||||
|
Loading…
Reference in New Issue
Block a user