Browse Source

Fixing issues

BaumSplitter41 3 months ago
parent
commit
3a840bde90
1 changed files with 3 additions and 0 deletions
  1. 3 0
      VPD_BOT/cogs/demotion.py

+ 3 - 0
VPD_BOT/cogs/demotion.py

@@ -74,6 +74,9 @@ class demotion(commands.Cog):
         if user_rank is None:
         if user_rank is None:
             await ctx.respond("The selected user does not have a rank that can be demoted!", ephemeral=True)
             await ctx.respond("The selected user does not have a rank that can be demoted!", ephemeral=True)
             return
             return
+        if author_rank is None:
+            await ctx.respond("You do not have a rank to promote others!", ephemeral=True)
+            return
         current_rank_index = ranks.index(user_rank)
         current_rank_index = ranks.index(user_rank)
         author_rank_index = ranks.index(author_rank)
         author_rank_index = ranks.index(author_rank)
         if current_rank_index == 0:
         if current_rank_index == 0: