bugfix, this check should only happen in guild mode
This commit is contained in:
parent
0767b66f33
commit
79d72654e2
|
@ -14,7 +14,7 @@ interface QueryShape {
|
|||
}
|
||||
|
||||
export const rename = async (message: DiscordenoMessage, guildMode: boolean, argSpaces: string[]) => {
|
||||
if (!guildMode && !(await hasGuildPermissions(message.authorId, message.guildId, ['ADMINISTRATOR']))) {
|
||||
if (guildMode && !(await hasGuildPermissions(message.authorId, message.guildId, ['ADMINISTRATOR']))) {
|
||||
message
|
||||
.send({
|
||||
embeds: [
|
||||
|
|
Loading…
Reference in New Issue