enmity v0.3.0 Enmity.User View Source
Operations on Users.
Link to this section Summary
Functions
Create a direct message with the given recipient.
Create a group DM with the given users.
Gets a user.
Gets the current user.
Leave a guild.
Modify the current user.
Get all of the current user's Facebook, Twitch, Twitter, etc. connections.
Get all the current user's guilds (called "servers" on the frontend)
Link to this section Functions
Create a direct message with the given recipient.
Create a group DM with the given users.
A list of the user's tokens must be provided, along with the nicknames of the users involved.
Gets a user.
Gets the current user.
Leave a guild.
Modify the current user.
Examples
Change your username:
Enmity.User.modify_me(username: "My brand new name")
Change your avatar:
Enmity.User.modify_me(avatar: <<...>>)
You can also change both at the same time. This function always returns the updated user object.
Get all of the current user's Facebook, Twitch, Twitter, etc. connections.
Get all the current user's guilds (called "servers" on the frontend)