Class: String
- Inherits:
-
Object
- Object
- String
- 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
-
#resolve_id ⇒ Integer
The Discord ID represented by this string, i.e.
Instance Method Details
#resolve_id ⇒ Integer
Returns The Discord ID represented by this string, i.e. the string converted to an integer.
133 134 135 |
# File 'lib/discordrb.rb', line 133 def resolve_id to_i end |