Skip to content

Instantly share code, notes, and snippets.

View Droid00000's full-sized avatar
🐼

Droid Droid00000

🐼
  • United States
  • 17:41 (UTC -04:00)
View GitHub Profile
# frozen_string_literal: true
server = data.server
sorter = lambda do |channels|
channels.sort_by! do |channel|
[channel.voice? ? 2 : 1, channel.position]
end
end