Browse Source

Fixed a bug with the info command rich embed when a user had no roles

tags/v1.1.2
Ubuntu 6 years ago
parent
commit
1eea26dc7a
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      cogs/util.py
  2. +1
    -1
      config/meta.py

+ 4
- 1
cogs/util.py View File

else: else:
roles += role.name + ", " roles += role.name + ", "
count += 1 count += 1
if not roles:
roles = "None"
count = 0
embed.add_field(name="Roles [{}]".format(count), value=roles.strip(", ")) embed.add_field(name="Roles [{}]".format(count), value=roles.strip(", "))
return await self.bot.say(embed=embed) return await self.bot.say(embed=embed)






def setup(Bot): def setup(Bot):
Bot.add_cog(Util(Bot))
Bot.add_cog(Util(Bot))

+ 1
- 1
config/meta.py View File

[Github link](https://github.com/RainbowDinoaur/roxbot) [Github link](https://github.com/RainbowDinoaur/roxbot)
[Changelog](https://github.com/RainbowDinoaur/roxbot#v100)""" [Changelog](https://github.com/RainbowDinoaur/roxbot#v100)"""
__author__ = "Roxanne Gibson" __author__ = "Roxanne Gibson"
__version__= "1.1.1"
__version__= "1.1.2"
embedcolour = 0xDEADBF embedcolour = 0xDEADBF

Loading…
Cancel
Save