mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-01-05 03:57:53 -05:00
bugfix, this check should only happen in guild mode
This commit is contained in:
@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user