implicit final class GatewayGuildSyntax extends AnyVal
- Source
- syntax.scala
- Alphabetic
- By Inheritance
- GatewayGuildSyntax
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GatewayGuildSyntax(guild: GatewayGuild)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def afkChannel: Option[NormalVoiceGuildChannel]
Get the afk channel in this guild.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def categories: Seq[GuildCategory]
Get all the categories in this guild.
- def categoriesByName(name: String): Seq[GuildCategory]
Get all the categories with a name.
- def categoryById(id: SnowflakeType[GuildCategory]): Option[GuildCategory]
Get a category by id in this guild.
- def channelById(id: GuildChannelId): Option[GuildChannel]
Get a channel by id in this guild.
- def channelsByName(name: String): Seq[GuildChannel]
Get all the channels with a name.
- def createEmoji(name: String, image: ImageData, roles: Seq[RoleId]): CreateGuildEmoji
Create a new emoji in this guild.
Create a new emoji in this guild.
- name
The name of the emoji.
- image
The image for the emoji.
- def delete: DeleteGuild
Delete this guild.
Delete this guild. Must be the owner.
- def emojiById(id: EmojiId): Option[Emoji]
Get an emoji by id.
- def emojisByName(name: String): Seq[Emoji]
Get all the emoji with a name.
- def fetchAuditLog(userId: Option[UserId] = None, actionType: Option[AuditLogEvent] = None, before: Option[RawSnowflake] = None, limit: Option[Int] = None): GetGuildAuditLog
Fetch an audit log for a this guild.
- def fetchEmojis: ListGuildEmojis
Fetch all the emojis for this guild.
- def fetchSingleEmoji(emojiId: EmojiId): GetGuildEmoji
Fetch a single emoji from this guild.
Fetch a single emoji from this guild.
- emojiId
The id of the emoji to fetch.
- def fetchWebhooks: GetGuildWebhooks
Fetch the webhooks in this guild.
- def fetchWelcomeScreen: GetGuildWelcomeScreen
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leaveGuild: LeaveGuild
Leave this guild.
- def memberById(id: UserId): Option[GuildMember]
Get a guild member by a user id.
- def memberFromUser(user: User): Option[GuildMember]
Get a guild member from a user.
- def membersWithRole(roleId: RoleId): Seq[GuildMember]
Get all the guild members with a role
Get all the guild members with a role
- roleId
The role to check for.
- def modifyWelcomeScreen(enabled: util.JsonOption[Boolean] = JsonUndefined, welcomeChannels: util.JsonOption[Seq[WelcomeScreenChannel]] = JsonUndefined, description: util.JsonOption[String] = JsonUndefined): ModifyGuildWelcomeScreen
- def normalVoiceChannelById(id: VoiceGuildChannelId): Option[NormalVoiceGuildChannel]
Get a voice channel by id in this guild.
- def normalVoiceChannels: Seq[NormalVoiceGuildChannel]
Get all the normal voice channels in the guild.
- def normalVoiceChannelsByName(name: String): Seq[NormalVoiceGuildChannel]
Get all the voice channels with a name.
- def presenceById(id: UserId): Option[Presence]
Get a presence by a user id.
- def presenceForUser(user: User): Option[Presence]
Get a presence for a user.
- def roleById(id: RoleId): Option[Role]
Get a role by id.
- def rolesByName(name: String): Seq[Role]
Get all the roles with a name.
- def setNick(nick: Option[String]): ModifyCurrentMember
Modify the clients nickname.
Modify the clients nickname.
- nick
The new nickname
- def stageChannelById(id: StageGuildChannelId): Option[StageGuildChannel]
Get a stage channel by id in this guild.
- def stageChannels: Seq[StageGuildChannel]
Get all the stage channels in the guild.
- def stageChannelsByName(name: String): Seq[StageGuildChannel]
Get all the stage channels with a name.
- def textChannelById(id: TextGuildChannelId): Option[TextGuildChannel]
Get a text channel by id in this guild.
- def textChannels: Seq[TextGuildChannel]
Get all the text channels in the guild.
- def textChannelsByName(name: String): Seq[TextGuildChannel]
Get all the text channels with a name.
- def toString(): String
- Definition Classes
- Any
- def voiceChannelById(id: VoiceGuildChannelId): Option[VoiceGuildChannel]
Get a voice channel by id in this guild.
- def voiceChannels: Seq[VoiceGuildChannel]
Get all the voice channels in the guild.
- def voiceChannelsByName(name: String): Seq[VoiceGuildChannel]
Get all the voice channels with a name.
- def voiceStateFor(userId: UserId): Option[VoiceState]
Get a voice state for a user.