Discord Elixir v1.1.18 DiscordEx.RestClient.Resources.Image View Source

Convience helper for images

Link to this section Summary

Functions

Get the user avatar URL

Get the guild icon URL

Link to this section Functions

Link to this function avatar_url(user_id, avatar_id) View Source
avatar_url(String.t(), String.t()) :: String.t()

Get the user avatar URL

Parameters

  • user_id: The user_id to retrieve the avatar URL for
  • avatar_id: The avatar_id for the user to retrieve the avatar URL for

Examples

Image.avatar_url("99999999993832","f3e8329c329020329")
Link to this function icon_url(server_id, icon_id) View Source
icon_url(String.t(), String.t()) :: String.t()

Get the guild icon URL

Parameters

  • server_id: The server_id to retrieve the icon URL for
  • icon_id: The icon_id for the user to retrieve the icon URL for

Examples

Image.icon_url("99999999993832","f3e8329c329020329")