WebhookMessage
Extends
Constructors
new WebhookMessage(client, data, webhookId, webhookToken)
1new WebhookMessage(2 client: UsingClient,3 data: MessageData,4 webhookId: string,5 webhookToken: string): WebhookMessage
Parameters
Parameter | Type |
---|---|
client | UsingClient |
data | MessageData |
webhookId | string |
webhookToken | string |
Returns
Overrides
Source
seyfert/src/structures/Message.ts:171
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
activity | public | undefined | Object | BaseMessage .activity |
application | public | undefined | Object | BaseMessage .application |
applicationId | public | undefined | string | BaseMessage .applicationId |
attachments | public | Object [] | BaseMessage .attachments |
author | public | User | BaseMessage .author |
channelId | public | string | BaseMessage .channelId |
client | readonly | UsingClient | BaseMessage .client |
components | public | MessageActionRowComponent <ActionRowMessageComponents >[] | BaseMessage .components |
content | public | string | BaseMessage .content |
editedTimestamp | public | null | string | BaseMessage .editedTimestamp |
embeds | public | Object [] | BaseMessage .embeds |
flags | public | undefined | MessageFlags | BaseMessage .flags |
guildId | public | undefined | string | BaseMessage .guildId |
id | public | string | BaseMessage .id |
interaction | public | undefined | Object | BaseMessage .interaction |
member? | public | GuildMember | BaseMessage .member |
mentionChannels | public | undefined | Object [] | BaseMessage .mentionChannels |
mentionEveryone | public | boolean | BaseMessage .mentionEveryone |
mentionRoles | public | string [] | BaseMessage .mentionRoles |
mentions | public | Object | BaseMessage .mentions |
mentions.channels | public | APIChannelMention [] | - |
mentions.roles | public | string [] | - |
mentions.users | public | (GuildMember | User )[] | - |
messageReference | public | undefined | Object | BaseMessage .messageReference |
nonce | public | undefined | string | number | BaseMessage .nonce |
pinned | public | boolean | BaseMessage .pinned |
poll? | public | Poll | BaseMessage .poll |
position | public | undefined | number | BaseMessage .position |
reactions | public | undefined | Object [] | BaseMessage .reactions |
referencedMessage | public | undefined | null | Object | BaseMessage .referencedMessage |
resolved | public | undefined | Object | BaseMessage .resolved |
roleSubscriptionData | public | undefined | Object | BaseMessage .roleSubscriptionData |
stickerItems | public | undefined | Object [] | BaseMessage .stickerItems |
stickers | public | undefined | Object [] | BaseMessage .stickers |
thread | public | | undefined | Object | Object | Object | Object | Object | Object | Object | Object | Object | Object | BaseMessage .thread |
timestamp? | readonly | number | BaseMessage .timestamp |
tts | readonly | boolean | BaseMessage .tts |
type | public | MessageType | BaseMessage .type |
webhookId | public | string | BaseMessage .webhookId |
webhookToken | public | string | - |
Accessors
createdAt
1get createdAt(): Date
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
1get createdTimestamp(): number
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
url
1get url(): string
Returns
string
Source
seyfert/src/structures/Message.ts:59
user
1get user(): User
Returns
Source
seyfert/src/structures/Message.ts:51
Methods
channel()
1channel(force: boolean): Promise<AllChannels>
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/Message.ts:68
createComponentCollector()
1createComponentCollector(options?: ListenerOptions): Object
Parameters
Parameter | Type |
---|---|
options ? | ListenerOptions |
Returns
Object
Member | Type |
---|---|
run | any |
stop | any |
Inherited from
BaseMessage
.createComponentCollector
Source
seyfert/src/structures/Message.ts:55
delete()
1delete(reason?: string): Promise<never>
Parameters
Parameter | Type |
---|---|
reason ? | string |
Returns
Promise
<never
>
Source
seyfert/src/structures/Message.ts:201
edit()
1edit(body: EditMessageWebhook): Promise<WebhookMessage>
Parameters
Parameter | Type |
---|---|
body | EditMessageWebhook |
Returns
Promise
<WebhookMessage
>
Source
seyfert/src/structures/Message.ts:184
fetch()
1fetch(): Promise<RESTGetAPIWebhookWithTokenResult>
Returns
Promise
<RESTGetAPIWebhookWithTokenResult
>
Source
seyfert/src/structures/Message.ts:180
guild()
1guild(force: boolean): undefined | Promise<Guild<"cached"> | Guild<"api">>
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
undefined
| Promise
<Guild
<"cached"
> | Guild
<"api"
>>
Inherited from
Source
seyfert/src/structures/Message.ts:63
react()
1react(emoji: EmojiResolvable): Promise<void>
Parameters
Parameter | Type |
---|---|
emoji | EmojiResolvable |
Returns
Promise
<void
>
Inherited from
Source
seyfert/src/structures/Message.ts:72
write()
1write(body: WriteMessageWebhook): Promise<null | WebhookMessage>
Parameters
Parameter | Type |
---|---|
body | WriteMessageWebhook |
Returns
Promise
<null
| WebhookMessage
>