Fix missing setup function for persistence role module
This commit is contained in:
parent
fc5b959558
commit
29b2412513
1 changed files with 3 additions and 0 deletions
|
@ -27,3 +27,6 @@ class RolePersistence(Cog):
|
|||
user_roles = [member.guild.get_role(int(role)) for role in user_roles
|
||||
if member.guild.get_role(int(role)) is not None]
|
||||
await member.add_roles(*user_roles, reason="Restoring old roles from `role_persistence`.")
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(RolePersistence(bot))
|
||||
|
|
Loading…
Reference in a new issue