Type aliases
Adapter
Adapter<InteractionInit>: { }
Type parameters
ButtonClickEvent
ButtonClickEvent: {}
ButtonProps
ButtonProps: { disabled?: boolean; emoji?: string; label?: string; style?: "primary" | "secondary" | "success" | "danger"; onClick: any }
Type declaration
Optional disabled?: boolean
Optional emoji?: string
Optional label?: string
Optional style?: "primary" | "secondary" | "success" | "danger"
onClick:function
Parameters
Returns void
EmbedAuthorProps
EmbedAuthorProps: { children?: string; iconUrl?: string; name?: string; url?: string }
Type declaration
Optional children?: string
Optional iconUrl?: string
Optional name?: string
Optional url?: string
EmbedFieldProps
EmbedFieldProps: { children?: string; inline?: boolean; name: string; value?: string }
Type declaration
Optional children?: string
Optional inline?: boolean
name: string
Optional value?: string
EmbedFooterProps
EmbedFooterProps: { children?: string; iconUrl?: string; text?: string; timestamp?: string | number | Date }
Type declaration
Optional children?: string
Optional iconUrl?: string
Optional text?: string
Optional timestamp?: string | number | Date
EmbedImageProps
EmbedImageProps: { url: string }
EmbedProps
EmbedProps: { author?: { iconUrl?: string; name: string; url?: string }; children?: React.ReactNode; color?: number; description?: string; fields?: { inline?: boolean; name: string; value: string }[]; footer?: { iconUrl?: string; text: string }; image?: { url: string }; thumbnail?: { url: string }; timestamp?: string | number | Date; title?: string; url?: string; video?: { url: string } }
Type declaration
Optional author?: { iconUrl?: string; name: string; url?: string }
Optional iconUrl?: string
name: string
Optional url?: string
Optional children?: React.ReactNode
Optional color?: number
Optional description?: string
Optional fields?: { inline?: boolean; name: string; value: string }[]
Optional footer?: { iconUrl?: string; text: string }
Optional iconUrl?: string
text: string
Optional image?: { url: string }
Optional thumbnail?: { url: string }
Optional timestamp?: string | number | Date
Optional title?: string
Optional url?: string
Optional video?: { url: string }
EmbedThumbnailProps
EmbedThumbnailProps: { url: string }
EmbedTitleProps
EmbedTitleProps: { children: string; url?: string }
Type declaration
children: string
Optional url?: string
LinkProps
LinkProps: { children?: string; disabled?: boolean; emoji?: string; label?: string; url: string }
Type declaration
Optional children?: string
Optional disabled?: boolean
Optional emoji?: string
Optional label?: string
url: string
ReacordConfig
Reacord
Config
<InteractionInit>: { adapter
: Adapter<InteractionInit>; maxInstances
?: number }Type parameters
Type declaration
adapter: Adapter<InteractionInit>
Optional maxInstances?: number
ReacordInstance
ReacordInstance: { deactivate: any; render: any }
Type declaration
deactivate:function
Returns void
render:function
- render(content: ReactNode): void
Parameters
Returns void
The max number of active instances. When this limit is exceeded, the oldest instances will be disabled.