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
2Methods
22Properties
Methods
constructorConstructorconstructor(client: UsingClient, data: APIChannelBase<ChannelType>);static __intent__(id: '@me'): 'DirectMessages';static __intent__(id: string): 'DirectMessages' | 'Guilds';fetch(mode?: 'rest' | 'flow'): Promise<AllChannels>;fetch(mode: 'cache'): ReturnCache<AllChannels | undefined>;delete(reason?: string): Promise<this>;toString(): `<#${string}>`;Returns a string representation of an object.
isStage(): this is StageChannel;isMedia(): this is MediaChannel;isDM(): this is DMChannel;isForum(): this is ForumChannel;isThread(): this is ThreadChannel;isDirectory(): this is DirectoryChannel;isVoice(): this is VoiceChannel;isTextGuild(): this is TextGuildChannel;isCategory(): this is CategoryChannel;isNews(): this is NewsChannel;isTextable(): this is AllTextableChannels;isGuildTextable(): this is AllGuildTextableChannels;isNamed(): this is AllNamedChannels;isGuild(): this is AllGuildChannels | BaseGuildChannelStructure;isThreadOnly(): this is ForumChannel | MediaChannel;is<T extends (keyof IChannelTypes)[]>(channelTypes: T): this is IChannelTypes[T[number]];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>;};