Class: Discord::UsersResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/discord/resources/users.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Discord::Resource

Instance Method Details

#meObject

Get the currently authenticated user

[View source]

5
6
7
# File 'lib/discord/resources/users.rb', line 5

def me
  User.new get_request("users/@me").body
end