Skip to content

BaseDiscordGuildChannel

Represents a base object for any/all guild channels.

Properties

guildId

BaseDiscordGuildChannel.guildId  :: string

topic

BaseDiscordGuildChannel.topic  :: string

nsfw

BaseDiscordGuildChannel.nsfw  :: boolean

rateLimitPerUser

BaseDiscordGuildChannel.rateLimitPerUser  :: number

parentId

BaseDiscordGuildChannel.parentId  :: string

flags

BaseDiscordGuildChannel.flags  :: number

id

BaseDiscordGuildChannel.id  :: string

This property was inherited from Objects.BaseDiscordChannel

type

BaseDiscordGuildChannel.type  :: number

This property was inherited from Objects.BaseDiscordChannel

Methods

overwriteRolePermissionsAsync

BaseDiscordGuildChannel : overwriteRolePermissionsAsync (

     roleId: string
     allowedPermissions: PermissionsBuilder.PermissionsBuilder
     disallowedPermissions: PermissionsBuilder.PermissionsBuilder
)  -> Vendor.Future

set overwrites for a specific role permissions for this channel in a discord guild.

overwriteMemberPermissionssync

BaseDiscordGuildChannel : overwriteMemberPermissionssync (

     memberId: string
     allowedPermissions: PermissionsBuilder.PermissionsBuilder
     disallowedPermissions: PermissionsBuilder.PermissionsBuilder
)  -> Vendor.Future

set overwrites for a specific members permissions for this channel in a discord guild.

overwriteMemberPermissionssync

BaseDiscordGuildChannel : overwriteMemberPermissionssync (

     roleIdOrUserId: string
)  -> Vendor.Future

deletes overwritten permissions for the given id, the given id must be either a role id or a user id

getInvitesAsync

BaseDiscordGuildChannel : getInvitesAsync ()  -> Vendor.Future

Gets the invites for the channel asynchronously.

createInviteAsync

BaseDiscordGuildChannel : createInviteAsync (

     maxAge: number?
     maxUses: number?
     temporary: boolean?
)  -> Vendor.Future

Creates an invite for the channel asynchronously.

setPositionAsync

BaseDiscordGuildChannel : setPositionAsync (

     position: number
     parentId: string?
     syncPermissions: boolean?
)  -> Vendor.Future

Sets the position of the channel asynchronously.

modifyAsync

BaseDiscordGuildChannel : modifyAsync (

     channelBuilder: ChannelBuilder.ChannelBuilder
)  -> Vendor.Future<unknown>

Modifies the thread channel settings asynchronously.

getPublicArchivedThreadsAsync

BaseDiscordGuildChannel : getPublicArchivedThreadsAsync (

     epoch: number?
     limit: number?
)  -> Vendor.Future<{ number }>

Gets all archived public threads in the guild channel asynchronously.

getPrivateArchivedThreadsAsync

BaseDiscordGuildChannel : getPrivateArchivedThreadsAsync (

     epoch: number?
     limit: number?
)  -> Vendor.Future<{ number }>

Gets all archived private threads in the guild channel asynchronously.

getJoinedPrivateArchivedThreads

BaseDiscordGuildChannel : getJoinedPrivateArchivedThreads (

     epoch: number?
     limit: number?
)  -> Vendor.Future<{ number }>

Gets all archived private threads that the bot is a member of, in the guild channel asynchronously.

deleteAsync

BaseDiscordGuildChannel : deleteAsync ()  -> Vendor.Future

Deletes the channel asynchronously.

This function was inherited from Objects.BaseDiscordChannel

Functions

The BaseDiscordGuildChannel instance has no set functions!