diff --git a/src/structure/client/wrappers/MessageWrapper.js b/src/structure/client/wrappers/MessageWrapper.js index 4d2ecf2..351d2c6 100644 --- a/src/structure/client/wrappers/MessageWrapper.js +++ b/src/structure/client/wrappers/MessageWrapper.js @@ -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() {