Skip to content

Commit

Permalink
Cleanup event roles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Droid00000 committed Nov 11, 2024
1 parent 8b9875f commit 2ba8bf3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/frost/events/edit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ def edit_event_role(data)
return
end

unless data.user.roles.include?(data.server.roles.find { |r| r.id == data.options['role'] })
unless data.user.roles.include?(data.server.role(data.options['role']))
data.edit_response(content: RESPONSE[17])
return
end

data.server.update_role(data.options['role'],
data.options['name'],
data.server.update_role(data.options['role'], data.options['name'],
resolve_color(data.options['color']),
data.options['icon'],
REASON[5])
data.emojis('icon')&.file, REASON[5])

data.edit_response(content: "#{RESPONSE[2]} #{EMOJI[3]}")
end

0 comments on commit 2ba8bf3

Please sign in to comment.