aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-04 20:17:34 +0100
committerGravatar Johannes Christ <[email protected]>2019-01-04 20:17:34 +0100
commitd5ad25c6606d313f976078e3c864287ecd009929 (patch)
treea608eeb8bda2b25a19ed4905b4e0c0bfb8888dd6
parentHandle role creation in sync cog. (diff)
Handle role deletion in sync cog.
-rw-r--r--bot/cogs/sync/cog.py9
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