default prefix

This commit is contained in:
Erik 2022-04-29 20:06:36 +03:00
parent 0a7ceb0aa5
commit 4ab77f9b71
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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() {