implicit final class TextGuildChannelSyntax extends AnyVal
- Source
- syntax.scala
- Alphabetic
- By Inheritance
- TextGuildChannelSyntax
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TextGuildChannelSyntax(channel: TextGuildChannel)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bulkDelete(ids: Seq[MessageId]): BulkDeleteMessages
Delete multiple messages at the same time.
Delete multiple messages at the same time.
- ids
The messages to delete.
- def createInvite(maxAge: Int = 86400, maxUses: Int = 0, temporary: Boolean = false, unique: Boolean = false): CreateChannelInvite
Create an invite for this channel.
Create an invite for this channel.
- maxAge
Duration in seconds before this invite expires.
- maxUses
Amount of times this invite can be used before expiring, or 0 for unlimited.
- temporary
If this invite only grants temporary membership.
- unique
If true, guarantees to create a new invite.
- def createWebhook(name: String, avatar: Option[ImageData]): CreateWebhook
Create a webhook for this channel.
Create a webhook for this channel.
- name
The webhook name.
- avatar
The webhook avatar.
- def fetchInvites: GetChannelInvites
Fetch all the invites created for this channel.
- def fetchPinnedMessages: GetPinnedMessages
Fetch all the pinned messages in this channel.
- def fetchWebhooks: GetChannelWebhooks
Fetch the webhooks for this channel.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listJoinedPrivateArchivedThreads(before: Option[OffsetDateTime] = None, limit: Option[Int] = None): ListPublicArchivedThreads
Lists all the joined private archived threads in this channel.
Lists all the joined private archived threads in this channel. Threads are ordered in descending order by RawThreadMetadata.archiveTimestamp.
- def listPrivateArchivedThreads(before: Option[OffsetDateTime] = None, limit: Option[Int] = None): ListPublicArchivedThreads
Lists all the private archived threads in this channel.
Lists all the private archived threads in this channel. Threads are ordered in descending order by RawThreadMetadata.archiveTimestamp.
- def listPublicArchivedThreads(before: Option[OffsetDateTime] = None, limit: Option[Int] = None): ListPublicArchivedThreads
Lists all the public archived threads in this channel.
Lists all the public archived threads in this channel. Threads are ordered in descending order by RawThreadMetadata.archiveTimestamp.
- def modify(name: util.JsonOption[String] = JsonUndefined, tpe: util.JsonOption[ChannelType] = JsonUndefined, position: util.JsonOption[Int] = JsonUndefined, topic: util.JsonOption[String] = JsonUndefined, nsfw: util.JsonOption[Boolean] = JsonUndefined, rateLimitPerUser: util.JsonOption[Int] = JsonUndefined, permissionOverwrites: util.JsonOption[SnowflakeMap[UserOrRole, PermissionOverwrite]] = JsonUndefined, category: util.JsonOption[SnowflakeType[GuildCategory]] = JsonUndefined): ModifyChannel
Update the settings of this channel.
Update the settings of this channel.
- name
New name of the channel.
- position
New position of the channel.
- topic
The new channel topic for text channels.
- nsfw
If the channel is NSFW for text channels.
- rateLimitPerUser
The new user ratelimit for guild text channels.
- permissionOverwrites
The new channel permission overwrites.
- category
The new category id of the channel.
- def startThread(name: String, tpe: ThreadChannelType = ChannelType.GuildPrivateThread, autoArchiveDuration: Option[Int] = None, invitable: Option[Boolean] = None, rateLimitPerUser: Option[Int] = None): StartThreadWithoutMessage
Start a new thread in this channel without a message.
- def toString(): String
- Definition Classes
- Any