Discord::CDN
This module contains methods for building URLs to resources on Discord's CDN for things like guild icons and avatars.
NOTE: All size arguments for CDN methods must be a power of 2 between 16
and 2048. If an invalid size is given, ArgumentError will be raised.
Constants
Base CDN URL
Instance methods
Produces a CDN URL for an application asset in the given format and size
Produces a CDN URL for an application icon in the given format and size
Produces a CDN URL for a custom emoji in the given format and size
Produces a CDN URL for a default user avatar, calculated from the given discriminator value.
Produces a CDN URL for a guild icon in the given format and size
Produces a CDN URL for a guild splash in the given format and size
Produces a CDN URL for a user avatar in the given size. Given the avatar
string, this will return a WebP or GIF based on the animated avatar hint.