mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-01-06 20:37:54 -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[]) => {
|
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
|
message
|
||||||
.send({
|
.send({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
|||||||
Reference in New Issue
Block a user