- Preparing search index...
- The search index is not available
erine
Constructors
constructor
- new Util(client): Util
-
Properties
Private
#private
#private: any
Static
BASE64URL_REGEX
BASE64URL_REGEX: RegExp
Methods
_setLimit
- _setLimit(values?, defaultValue?): number | Record<string, number>
-
Parameters
-
Optional
values: number | Record<string, number>
-
Optional
defaultValue: number
Returns number | Record<string, number>
componentToParsed
- componentToParsed<T>(component): ToComponentFromRaw<T>
-
componentToRaw
- componentToRaw<T>(component): ToRawFromComponent<T>
-
convertImage
- convertImage(img): string
-
Returns string
convertSticker
- convertSticker(raw): Sticker
-
embedsToParsed
- embedsToParsed(embeds): Embed[]
-
embedsToRaw
- embedsToRaw(embeds): RawEmbedOptions[]
-
formatAllowedMentions
- formatAllowedMentions(allowed?): RawAllowedMentions
-
formatImage
- formatImage(url, format?, size?): string
-
Parameters
-
url: string
-
Optional
format: "jpg" | "jpeg" | "png" | "webp" | "gif"
-
Optional
size: number
Returns string
getMagic
- getMagic(file, len?): string
-
Parameters
-
file: Buffer
-
Optional
len: number
Returns string
optionToParsed
- optionToParsed(option): ApplicationCommandOptions
-
optionToRaw
- optionToRaw(option): RawApplicationCommandOption
-
updateChannel
- updateChannel<T>(channelData): T
-
Returns T
updateMember
- updateMember(guildID, memberID, member): Member
-
Parameters
-
guildID: string
-
memberID: string
-
updateThread
- updateThread<T>(threadData): T
-
Returns T
Static
rawEmbeds
- rawEmbeds(embeds): Embed
-
- rawEmbeds(embeds): Embed[]
-
Static
rawMessageComponents
- rawMessageComponents(components): MessageActionRow
-
- rawMessageComponents(components): MessageActionRow[]
-
Static
rawModalComponents
- rawModalComponents(components): ModalActionRow
-
- rawModalComponents(components): ModalActionRow[]
-
A general set of utilities. These are intentionally poorly documented, as they serve almost no usefulness to outside developers.