Skip to content

Commit

Permalink
Missed part, and added levels not enabled message
Browse files Browse the repository at this point in the history
  • Loading branch information
transorsmth committed Jan 20, 2023
1 parent 535dc48 commit 4776f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dozer/cogs/levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ async def rank(self, ctx: DozerContext, *, member: discord.Member = None):
draw.text((100, 18), member.display_name, font=ImageFont.truetype('DejaVuSans.ttf', 20))
guild_settings = self.guild_settings.get(ctx.guild.id)
if guild_settings is None or not guild_settings.enabled:
embed.description = "Levels are not enabled in this server"
draw.text((100, 42), "Levels are not enabled in this server")
# embed.description = "Levels are not enabled in this server"
else:
cache_record = await self.load_member(ctx.guild.id,
member.id) # Grab member from cache to make sure we have the most up to date values
Expand Down

0 comments on commit 4776f15

Please sign in to comment.