WebhookChannelMethods
Extends
DiscordBase
Constructors
new WebhookChannelMethods(client, data)
1new WebhookChannelMethods(client: UsingClient, data: Object): WebhookChannelMethods
Parameters
Parameter | Type | Description |
---|---|---|
client | UsingClient | - |
data | Object | Unique ID of the object |
data.id | string | - |
Returns
Inherited from
DiscordBase.constructor
Source
seyfert/src/structures/extra/DiscordBase.ts:7
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
client | readonly | UsingClient | DiscordBase.client |
id | public | string | DiscordBase.id |
webhooks | public | Object | - |
webhooks.create | public | (body : RESTPostAPIChannelWebhookJSONBody ) => Promise <Webhook > | - |
webhooks.list | public | () => Promise <Webhook []> | - |
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
Methods
channel()
1static channel(ctx: Object): Object
Parameters
Parameter | Type |
---|---|
ctx | Object |
ctx.channelId | string |
ctx.client | UsingClient |
Returns
Object
Member | Type | Value |
---|---|---|
create | (body : RESTPostAPIChannelWebhookJSONBody ) => Promise <Webhook > | - |
list | () => Promise <Webhook []> | - |