ROUTER
: { api
: { webhook
: ((id
: string, token
: string) => string); webhookMessage
: ((id
: string, token
: string, messageID
: string) => string); }; cdn
: { avatar
: ((userID
: string, avatar
: string, format
?: ImageFormat, size
?: AvatarSize) => string); defaultAvatar
: ((discriminator
: number) => string); emoji
: ((emojiID
: string, format
: ImageFormat) => string); }; } = ...
Type declaration
-
api: {
webhook: ((id: string, token: string) => string);
webhookMessage: ((id: string, token: string, messageID: string) => string);
}
-
webhook: ((id: string, token: string) => string)
-
- (id: string, token: string): string
-
Returns string
-
webhookMessage: ((id: string, token: string, messageID: string) => string)
-
- (id: string, token: string, messageID: string): string
-
Parameters
-
id: string
-
token: string
-
messageID: string
Returns string
-
cdn: {
avatar: ((userID: string, avatar: string, format?: ImageFormat, size?: AvatarSize) => string);
defaultAvatar: ((discriminator: number) => string);
emoji: ((emojiID: string, format: ImageFormat) => string);
}
-
avatar: ((userID: string, avatar: string, format?: ImageFormat, size?: AvatarSize) => string)
-
- (userID: string, avatar: string, format?: ImageFormat, size?: AvatarSize): string
-
Parameters
-
userID: string
-
avatar: string
-
-
Returns string
-
defaultAvatar: ((discriminator: number) => string)
-
- (discriminator: number): string
-
Returns string
-
emoji: ((emojiID: string, format: ImageFormat) => string)
-
- (emojiID: string, format: ImageFormat): string
-
Returns string