ChannelService

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Functions

Link copied to clipboard
suspend fun addPinnedMessage(channelId: Snowflake, messageId: Snowflake, reason: String? = null)
Link copied to clipboard
suspend fun addToGroup(channelId: Snowflake, userId: Snowflake, addUser: UserAddDMRequest)
Link copied to clipboard
suspend fun addUserToThread(channelId: Snowflake, userId: Snowflake)
Link copied to clipboard
suspend fun bulkDelete(channelId: Snowflake, messages: BulkDeleteRequest, reason: String? = null)
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
suspend fun createReaction(channelId: Snowflake, messageId: Snowflake, emoji: String)
Link copied to clipboard
suspend fun crossPost(channelId: Snowflake, messageId: Snowflake): DiscordMessage
Link copied to clipboard
suspend fun deleteAllReactions(channelId: Snowflake, messageId: Snowflake)
Link copied to clipboard
suspend fun deleteAllReactionsForEmoji(channelId: Snowflake, messageId: Snowflake, emoji: String)
Link copied to clipboard
suspend fun deleteChannel(channelId: Snowflake, reason: String? = null): DiscordChannel
Link copied to clipboard
suspend fun deleteChannelPermission(channelId: Snowflake, overwriteId: Snowflake, reason: String? = null)
Link copied to clipboard
suspend fun deleteMessage(channelId: Snowflake, messageId: Snowflake, reason: String? = null)
Link copied to clipboard
suspend fun deleteOwnReaction(channelId: Snowflake, messageId: Snowflake, emoji: String)
Link copied to clipboard
suspend fun deletePinnedMessage(channelId: Snowflake, messageId: Snowflake, reason: String? = null)
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
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
Link copied to clipboard
suspend fun getChannel(channelId: Snowflake): DiscordChannel
Link copied to clipboard
Link copied to clipboard
suspend fun getChannelPins(channelId: Snowflake): List<DiscordMessage>
Link copied to clipboard
suspend fun getMessage(channelId: Snowflake, messageId: Snowflake): DiscordMessage
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
suspend fun joinThread(channelId: Snowflake)
Link copied to clipboard
suspend fun leaveThread(channelId: Snowflake)
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun patchThread(threadId: Snowflake, thread: ChannelModifyPatchRequest, reason: String? = null): DiscordChannel
Link copied to clipboard
Link copied to clipboard
suspend fun putChannel(channelId: Snowflake, channel: ChannelModifyPutRequest, reason: String? = null): DiscordChannel
Link copied to clipboard
suspend fun removeFromGroup(channelId: Snowflake, userId: Snowflake)
Link copied to clipboard
suspend fun removeUserFromThread(channelId: Snowflake, userId: Snowflake)
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
suspend fun triggerTypingIndicator(channelId: Snowflake)