Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/onyxcord.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#resolve_idInteger

Returns The Discord ID represented by this string, i.e. the string converted to an integer.

Returns:

  • (Integer)

    The Discord ID represented by this string, i.e. the string converted to an integer



172
173
174
# File 'lib/onyxcord.rb', line 172

def resolve_id
  to_i
end