From 4ab77f9b713387623284aa9d680bdba31a5d2dcb Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 29 Apr 2022 20:06:36 +0300 Subject: [PATCH] default prefix --- src/structure/client/wrappers/MessageWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {