Class: Integer

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

Overview

In discordrb, 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 integer, i.e. the integer itself.

Returns:

  • (Integer)

    The Discord ID represented by this integer, i.e. the integer itself



19
20
21
# File 'lib/discordrb.rb', line 19

def resolve_id
  self
end