diff --git a/discord/enums.py b/discord/enums.py index 89da6aa68..6fdd10a3c 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -122,6 +122,9 @@ class EnumMeta(type): def __setattr__(cls, name, value): raise TypeError('Enums are immutable.') + def __delattr__(cls, attr): + raise TypeError('Enums are immutable') + def __instancecheck__(self, instance): # isinstance(x, Y) # -> __instancecheck__(Y, x)