ChannelService
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun createInvite(channelId: Snowflake, builder: InviteCreateBuilder.() -> Unit = {}): DiscordInviteWithMetadata
Link copied to clipboard
suspend fun createMessage(channelId: Snowflake, multipartRequest: MultipartMessageCreateRequest): DiscordMessage
inline suspend fun createMessage(channelId: Snowflake, builder: UserMessageCreateBuilder.() -> Unit): DiscordMessage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun deleteChannelPermission(channelId: Snowflake, overwriteId: Snowflake, reason: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun deleteReaction(channelId: Snowflake, messageId: Snowflake, userId: Snowflake, emoji: String)
Link copied to clipboard
suspend fun editChannelPermissions(channelId: Snowflake, overwriteId: Snowflake, permissions: ChannelPermissionEditRequest, reason: String? = null)
Link copied to clipboard
inline suspend fun ChannelService.editMemberPermissions(channelId: Snowflake, memberId: Snowflake, builder: ChannelPermissionModifyBuilder.() -> Unit)
Link copied to clipboard
suspend fun editMessage(channelId: Snowflake, messageId: Snowflake, request: MessageEditPatchRequest): DiscordMessage
suspend fun editMessage(channelId: Snowflake, messageId: Snowflake, request: MultipartMessagePatchRequest): DiscordMessage
suspend fun editMessage(channelId: Snowflake, messageId: Snowflake, request: MultipartWebhookEditMessageRequest): DiscordMessage
inline suspend fun editMessage(channelId: Snowflake, messageId: Snowflake, builder: UserMessageModifyBuilder.() -> Unit): DiscordMessage
Link copied to clipboard
inline suspend fun ChannelService.editRolePermission(channelId: Snowflake, roleId: Snowflake, builder: ChannelPermissionModifyBuilder.() -> Unit)
Link copied to clipboard
suspend fun followNewsChannel(channelId: Snowflake, request: ChannelFollowRequest): FollowedChannelResponse
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getMessages(channelId: Snowflake, position: Position? = null, limit: Int? = null): List<DiscordMessage>
Link copied to clipboard
suspend fun getReactions(channelId: Snowflake, messageId: Snowflake, emoji: String, after: Position.After? = null, limit: Int? = null): List<DiscordUser>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun listJoinedPrivateArchivedThreads(channelId: Snowflake, request: ListThreadsBySnowflakeRequest): ListThreadsResponse
Link copied to clipboard
suspend fun listPrivateArchivedThreads(channelId: Snowflake, request: ListThreadsByTimestampRequest): ListThreadsResponse
Link copied to clipboard
suspend fun listPublicArchivedThreads(channelId: Snowflake, request: ListThreadsByTimestampRequest): ListThreadsResponse
Link copied to clipboard
Link copied to clipboard
inline suspend fun ChannelService.patchCategory(channelId: Snowflake, builder: CategoryModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
suspend fun patchChannel(channelId: Snowflake, channel: ChannelModifyPatchRequest, reason: String? = null): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchForumChannel(channelId: Snowflake, builder: ForumChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchMediaChannel(channelId: Snowflake, builder: MediaChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchNewsChannel(channelId: Snowflake, builder: NewsChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchStageVoiceChannel(channelId: Snowflake, builder: StageVoiceChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchTextChannel(channelId: Snowflake, builder: TextChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
suspend fun patchThread(threadId: Snowflake, thread: ChannelModifyPatchRequest, reason: String? = null): DiscordChannel
Link copied to clipboard
inline suspend fun ChannelService.patchVoiceChannel(channelId: Snowflake, builder: VoiceChannelModifyBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
suspend fun putChannel(channelId: Snowflake, channel: ChannelModifyPutRequest, reason: String? = null): DiscordChannel
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun startForumThread(channelId: Snowflake, name: String, builder: StartForumThreadBuilder.() -> Unit = {}): DiscordChannel
Link copied to clipboard
suspend fun startThread(channelId: Snowflake, multipartRequest: MultipartStartThreadRequest, reason: String? = null): DiscordChannel
suspend fun startThread(channelId: Snowflake, request: StartThreadRequest, reason: String? = null): DiscordChannel
suspend fun startThread(channelId: Snowflake, name: String, archiveDuration: ArchiveDuration, type: ChannelType, builder: StartThreadBuilder.() -> Unit = {}): DiscordChannel
Link copied to clipboard
suspend fun startThreadWithMessage(channelId: Snowflake, messageId: Snowflake, request: StartThreadRequest, reason: String? = null): DiscordChannel
suspend fun startThreadWithMessage(channelId: Snowflake, messageId: Snowflake, name: String, archiveDuration: ArchiveDuration, builder: StartThreadWithMessageBuilder.() -> Unit): DiscordChannel
Link copied to clipboard