LogoAntiRaid

@antiraid-ext/utils/avatar

API reference for @antiraid-ext/utils/avatar

@antiraid-ext/utils/avatar

Functions

avatarUrl

Returns the avatar URL for a user or returns a default avatar URL if the user does not have a custom avatar.

Function Signature
--- Returns the avatar URL for a user or returns a default avatar URL if the user does not have a custom avatar.
---
--- @param user apiTypes.UserObject
--- @return string The URL of the user's avatar.
function avatarUrl(user: apiTypes.UserObject) end

Arguments

user

apiTypes.UserObject

apiTypes.UserObject

guildIconUrl

Returns the guild icon URL for a given guild object or a default avatar URL if the guild does not have an icon.

Function Signature
--- Returns the guild icon URL for a given guild object or a default avatar URL if the guild does not have an icon.
---
--- @param guild apiTypes.GuildObject
--- @return string The URL of the guild's
function guildIconUrl(guild: apiTypes.GuildObject) -> string end

Arguments

guild

apiTypes.GuildObject

apiTypes.GuildObject

Returns

string

The URL of the guild's

string

Last updated on