Method: Discordrb::API.validate_token
- Defined in:
- lib/discordrb/api.rb
.validate_token(token) ⇒ Object
Validate a token (this request will fail if the token is invalid)
294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/discordrb/api.rb', line 294 def validate_token(token) request( :auth_login, nil, :post, "#{api_base}/auth/login", {}.to_json, Authorization: token, content_type: :json ) end |