class String

In discordrb, {Integer} and String are monkey-patched to allow for easy resolution of IDs

Public Instance Methods

resolve_id() click to toggle source

@return [Integer] The Discord ID represented by this string, i.e. the string converted to an integer

# File lib/discordrb.rb, line 133
def resolve_id
  to_i
end