Methods
_setLimit
- _setLimit(values?, defaultValue?): number | Record<string, number>
Parameters
Optional
values: number | Record<string, number>- defaultValue: number = Infinity
Returns number | Record<string, number>
convertImage
- convertImage(img): string
Returns string
detectMissingPrivilegedIntents
embedsToParsed
- embedsToParsed(embeds): Embed[]
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
- len: number = 4
Returns string
modalSubmitComponentToParsed
modalSubmitComponentsToParsed
replacePollAnswer
- replacePollAnswer(poll, answerID, count, users?): void
Internal
Parameters
- poll: Poll
- answerID: number
- count: number
Optional
users: string[]
Returns void
updateChannel
- updateChannel<T>(channelData): T
Returns T
updateEntitlement
- updateEntitlement<T>(data): T
Internal
Returns T
updateMember
- updateMember(guildID, memberID, member): Member
Internal
updatePollAnswer
- updatePollAnswer(poll, answerID, count, user?): void
Internal
Parameters
- poll: Poll
- answerID: number
- count: number
Optional
user: string
Returns void
updateThread
- updateThread<T>(threadData): T
Internal
Returns T
Static
rawEmbeds
- rawEmbeds(embeds): Embed
- rawEmbeds(embeds): Embed[]
Static
rawMessageComponents
Static
rawModalComponents
A general set of utilities. These are intentionally poorly documented, as they serve almost no usefulness to outside developers.