diff options
| author | 2019-01-04 20:17:34 +0100 | |
|---|---|---|
| committer | 2019-01-04 20:17:34 +0100 | |
| commit | d5ad25c6606d313f976078e3c864287ecd009929 (patch) | |
| tree | a608eeb8bda2b25a19ed4905b4e0c0bfb8888dd6 | |
| parent | Handle role creation in sync cog. (diff) | |
Handle role deletion in sync cog.
| -rw-r--r-- | bot/cogs/sync/cog.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/cogs/sync/cog.py b/bot/cogs/sync/cog.py index 6cffe6339..9442b7a33 100644 --- a/bot/cogs/sync/cog.py +++ b/bot/cogs/sync/cog.py @@ -50,6 +50,15 @@ class Sync: } ) + async def on_guild_role_delete(self, role: Role): + log.warning( + ( + "Attempted to delete role `%s` (`%d`), but role deletion " + "is currently not implementeed." + ), + role.name, role.id + ) + async def on_guild_role_update(self, before: Role, after: Role): if ( before.name |