We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3989d commit 87fc3abCopy full SHA for 87fc3ab
lib/discordrb/data/server.rb
@@ -411,6 +411,7 @@ def delete_role(role_id)
411
overwrites = channel.permission_overwrites.reject { |id, _| id == role_id }
412
channel.update_overwrites(overwrites)
413
end
414
+ @automod_rules.each_value { |rule| rule.exempt_roles.reject! { |r| r.id == role_id } }
415
416
417
# Updates the positions of all roles on the server
@@ -997,6 +998,7 @@ def add_channel(channel)
997
998
def delete_channel(id)
999
@channels.reject! { |e| e.id == id }
1000
@channels_by_id.delete(id)
1001
+ @automod_rules.each_value { |rule| rule.exempt_channels.reject! { |c| c.id == id } }
1002
1003
1004
# Updates the cached emoji data with new data
0 commit comments