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)) |
[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 |