Skip to content

NewsChannel

Extends

Constructors

new NewsChannel(client, data)

1
new NewsChannel(client: UsingClient, data: APIChannelBase<ChannelType>): NewsChannel

Parameters

ParameterType
clientUsingClient
dataAPIChannelBase<ChannelType>

Returns

NewsChannel

Inherited from

BaseChannel.constructor

Source

seyfert/src/structures/channels.ts:47

Properties

PropertyModifierTypeInherited from
clientreadonlyUsingClientBaseChannel.client
defaultAutoArchiveDurationpublicundefined | ThreadAutoArchiveDurationObjectToLower.defaultAutoArchiveDuration
defaultThreadRateLimitPerUserpublicundefined | numberObjectToLower.defaultThreadRateLimitPerUser
flagspublicundefined | ChannelFlagsObjectToLower.flags
guildIdpublicundefined | stringObjectToLower.guildId
idpublicstringBaseChannel.id
lastMessageIdpublicundefined | null | stringObjectToLower.lastMessageId
lastPinTimestamppublicundefined | null | stringObjectToLower.lastPinTimestamp
namepublicstringObjectToLower.name
nsfwpublicundefined | booleanObjectToLower.nsfw
parentIdpublicundefined | null | stringObjectToLower.parentId
permissionOverwritespublicundefined | Object[]ObjectToLower.permissionOverwrites
positionpublicnumberObjectToLower.position
rateLimitPerUserpublicundefined | numberObjectToLower.rateLimitPerUser
topicpublicundefined | null | stringObjectToLower.topic
typepublicGuildAnnouncementBaseChannel.type
webhookspublicObjectWebhookChannelMethods.webhooks
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


url

1
get url(): string

The URL to the channel

Returns

string

Source

seyfert/src/structures/channels.ts:58

Methods

addFollower()

1
addFollower(webhookChannelId: string, reason?: string): Promise<APIFollowedChannel>

Parameters

ParameterType
webhookChannelIdstring
reason?string

Returns

Promise<APIFollowedChannel>

Source

seyfert/src/structures/channels.ts:526


delete()

1
delete(reason?: string): Promise<AllChannels>

Parameters

ParameterType
reason?string

Returns

Promise<AllChannels>

Inherited from

BaseChannel.delete

Source

seyfert/src/structures/channels.ts:66


edit()

1
edit(body: RESTPatchAPIChannelJSONBody, reason?: string): Promise<AllChannels>

Parameters

ParameterType
bodyRESTPatchAPIChannelJSONBody
reason?string

Returns

Promise<AllChannels>

Inherited from

BaseChannel.edit

Source

seyfert/src/structures/channels.ts:70


fetch()

1
fetch(force: boolean): Promise<AllChannels>

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

Promise<AllChannels>

Inherited from

BaseChannel.fetch

Source

seyfert/src/structures/channels.ts:62


is()

1
is<T>(channelTypes: T): this is IChannelTypes[T[number]]

Type parameters

Type parameter
T extends keyof IChannelTypes[]

Parameters

ParameterType
channelTypesT

Returns

this is IChannelTypes[T[number]]

Inherited from

BaseChannel.is

Source

seyfert/src/structures/channels.ts:133


isCategory()

1
isCategory(): this is CategoryChannel

Returns

this is CategoryChannel

Inherited from

BaseChannel.isCategory

Source

seyfert/src/structures/channels.ts:113


isDM()

1
isDM(): this is DMChannel

Returns

this is DMChannel

Inherited from

BaseChannel.isDM

Source

seyfert/src/structures/channels.ts:89


isDirectory()

1
isDirectory(): this is DirectoryChannel

Returns

this is DirectoryChannel

Inherited from

BaseChannel.isDirectory

Source

seyfert/src/structures/channels.ts:101


isForum()

1
isForum(): this is ForumChannel

Returns

this is ForumChannel

Inherited from

BaseChannel.isForum

Source

seyfert/src/structures/channels.ts:93


isGuildTextable()

1
isGuildTextable(): this is AllGuildTextableChannels

Returns

this is AllGuildTextableChannels

Inherited from

BaseChannel.isGuildTextable

Source

seyfert/src/structures/channels.ts:125


isMedia()

1
isMedia(): this is MediaChannel

Returns

this is MediaChannel

Inherited from

BaseChannel.isMedia

Source

seyfert/src/structures/channels.ts:85


isNews()

1
isNews(): this is NewsChannel

Returns

this is NewsChannel

Inherited from

BaseChannel.isNews

Source

seyfert/src/structures/channels.ts:117


isStage()

1
isStage(): this is StageChannel

Returns

this is StageChannel

Inherited from

BaseChannel.isStage

Source

seyfert/src/structures/channels.ts:81


isTextGuild()

1
isTextGuild(): this is TextGuildChannel

Returns

this is TextGuildChannel

Inherited from

BaseChannel.isTextGuild

Source

seyfert/src/structures/channels.ts:109


isTextable()

1
isTextable(): this is AllTextableChannels

Returns

this is AllTextableChannels

Inherited from

BaseChannel.isTextable

Source

seyfert/src/structures/channels.ts:121


isThread()

1
isThread(): this is ThreadChannel

Returns

this is ThreadChannel

Inherited from

BaseChannel.isThread

Source

seyfert/src/structures/channels.ts:97


isThreadOnly()

1
isThreadOnly(): this is MediaChannel | ForumChannel

Returns

this is MediaChannel | ForumChannel

Inherited from

BaseChannel.isThreadOnly

Source

seyfert/src/structures/channels.ts:129


isVoice()

1
isVoice(): this is VoiceChannel

Returns

this is VoiceChannel

Inherited from

BaseChannel.isVoice

Source

seyfert/src/structures/channels.ts:105


toString()

1
toString(): string

Returns

string

Inherited from

BaseChannel.toString

Source

seyfert/src/structures/channels.ts:77


__intent__()

__intent__(id)

1
static __intent__(id: "@me"): "DirectMessages"
Parameters
ParameterType
id"@me"
Returns

"DirectMessages"

Inherited from

BaseChannel.__intent__

Source

seyfert/src/structures/channels.ts:51

__intent__(id)

1
static __intent__(id: string): "DirectMessages" | "Guilds"
Parameters
ParameterType
idstring
Returns

"DirectMessages" | "Guilds"

Inherited from

BaseChannel.__intent__

Source

seyfert/src/structures/channels.ts:52


allMethods()

1
static allMethods(ctx: Object): Object

Parameters

ParameterType
ctxObject
ctx.clientUsingClient
ctx.guildIdstring

Returns

Object

MemberTypeValue
create(body: RESTPostAPIGuildChannelJSONBody) => Promise<AllChannels>-
delete(id: string, reason?: string) => Promise<AllChannels>-
edit(id: string, body: RESTPatchAPIChannelJSONBody, reason?: string) => Promise<AllChannels>-
editPositions(body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<never>-
fetch(id: string, force: boolean) => Promise<AllChannels>-
list(force: boolean) => Promise<AllChannels[]>-

Inherited from

BaseChannel.allMethods

Source

seyfert/src/structures/channels.ts:137