Browse Source

it seems that the bug where you couldnt remove warnings of users not in the guild anymore seems to have been fixed when moving over to the new version of discord.py

tags/v1.4.0
roxie 6 years ago
parent
commit
2341931b84
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      cogs/admin.py

+ 4
- 4
cogs/admin.py View File

@@ -10,8 +10,8 @@ class Admin():
"""
Admin Commands for those admins
"""
def __init__(self, Bot):
self.bot = Bot
def __init__(self, bot_client):
self.bot = bot_client
self.slow_mode = False
self.slow_mode_channels = {}
self.users = {}
@@ -174,5 +174,5 @@ class Admin():
return await ctx.send("Could not find user in warning list.")


def setup(Bot):
Bot.add_cog(Admin(Bot))
def setup(bot_client):
bot_client.add_cog(Admin(bot_client))

Loading…
Cancel
Save