BaumSplitter41 преди 3 месеца
родител
ревизия
ae34498298
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      VPD_BOT/cogs/promotion.py

+ 3 - 0
VPD_BOT/cogs/promotion.py

@@ -74,6 +74,9 @@ class promotion(commands.Cog):
         if user_rank is None:
             await ctx.respond("The selected user does not have a rank that can be promoted!", ephemeral=True)
             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)
         author_rank_index = ranks.index(author_rank)
         if current_rank_index == len(ranks) - 1: