BaseNoEditableChannel

Signature

export declare class BaseNoEditableChannel<T extends ChannelType> extends DiscordBase<APIChannelBase<ChannelType>>

Private types

IChannelTypesInterface
interface IChannelTypes {    GuildStageVoice: StageChannel;    GuildMedia: MediaChannel;    DM: DMChannel;    GuildForum: ForumChannel;    AnnouncementThread: ThreadChannel;    PrivateThread: ThreadChannel;    PublicThread: ThreadChannel;    GuildDirectory: DirectoryChannel;    GuildVoice: VoiceChannel;    GuildText: TextGuildChannel;    GuildCategory: CategoryChannel;    GuildAnnouncement: NewsChannel;}

Properties

urlGetter
get url(): `https://discord.com/channels/${string}/${string}`;

The URL to the channel

Methods

static __intent__(id: '@me'): 'DirectMessages';static __intent__(id: string): 'DirectMessages' | 'Guilds';
delete(reason?: string): Promise<this>;
toString(): `<#${string}>`;

Returns a string representation of an object.

static allMethods(ctx: MethodContext<{    guildId: string;}>): {    list: (force?: boolean) => Promise<AllChannels[]>;    fetch: (id: string, force?: boolean) => Promise<AllChannels>;    create: <T extends GuildChannelTypes = GuildChannelTypes>(body: RESTPostAPIGuildChannelJSONBody & {        type: T;    }) => Promise<SeyfertChannelMap[T]>;    delete: (id: string, reason?: string) => Promise<AllChannels>;    edit: (id: string, body: RESTPatchAPIChannelJSONBody, reason?: string) => Promise<AllChannels>;    editPositions: (body: RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<undefined>;};