Updated ban command
This commit is contained in:
@@ -57,6 +57,15 @@ module.exports = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (interaction.guild.members.me.roles.highest.position <= member.roles.highest.position) {
|
||||||
|
await interaction.editReply("I cannot ban this member.")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (member.id === mod.id) {
|
||||||
|
return interaction.editReply("You cannot ban yourself.")
|
||||||
|
}
|
||||||
|
|
||||||
if (member.id === interaction.applicationId) {
|
if (member.id === interaction.applicationId) {
|
||||||
await interaction.editReply("I cannot ban myself.")
|
await interaction.editReply("I cannot ban myself.")
|
||||||
return
|
return
|
||||||
@@ -67,10 +76,6 @@ module.exports = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (member.id === mod.id) {
|
|
||||||
return interaction.editReply("You cannot ban yourself.")
|
|
||||||
}
|
|
||||||
|
|
||||||
if (memberRoles.includes(helper) || memberRoles.includes(admin)) {
|
if (memberRoles.includes(helper) || memberRoles.includes(admin)) {
|
||||||
await interaction.editReply("I cannot ban a moderator.")
|
await interaction.editReply("I cannot ban a moderator.")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user