Skip to content

WebhookChannelMethods

Extends

  • DiscordBase

Constructors

new WebhookChannelMethods(client, data)

1
new WebhookChannelMethods(client: UsingClient, data: Object): WebhookChannelMethods

Parameters

ParameterTypeDescription
clientUsingClient-
dataObjectUnique ID of the object
data.idstring-

Returns

WebhookChannelMethods

Inherited from

DiscordBase.constructor

Source

seyfert/src/structures/extra/DiscordBase.ts:7

Properties

PropertyModifierTypeInherited from
clientreadonlyUsingClientDiscordBase.client
idpublicstringDiscordBase.id
webhookspublicObject-
webhooks.createpublic(body: RESTPostAPIChannelWebhookJSONBody) => Promise<Webhook>-
webhooks.listpublic() => Promise<Webhook[]>-

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20

Methods

channel()

1
static channel(ctx: Object): Object

Parameters

ParameterType
ctxObject
ctx.channelIdstring
ctx.clientUsingClient

Returns

Object

MemberTypeValue
create(body: RESTPostAPIChannelWebhookJSONBody) => Promise<Webhook>-
list() => Promise<Webhook[]>-

Source

seyfert/src/structures/channels.ts:384