c

ackcord.syntax

GuildSyntax

implicit final class GuildSyntax extends AnyVal

Source
syntax.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GuildSyntax
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GuildSyntax(guild: Guild)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. def addGuildMember(userId: UserId, accessToken: String, nick: Option[String] = None, roles: Option[Seq[RoleId]] = None, mute: Option[Boolean] = None, deaf: Option[Boolean] = None): AddGuildMember

    Add a guild member to this guild.

    Add a guild member to this guild. Requires the guilds.join OAuth2 scope.

    accessToken

    The OAuth2 access token.

    nick

    The nickname to give to the user.

    roles

    The roles to give to the user.

    mute

    If the user should be muted.

    deaf

    If the user should be deafened.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def beginPrune(days: Int, computePruneCount: Boolean = guild match { case gatewayGuild: GatewayGuild => gatewayGuild.memberCount < 1000 case _ => false }, includeRoles: Seq[RoleId] = Nil): BeginGuildPrune

    Begin a prune.

    Begin a prune.

    days

    The number of days to prune for.

  7. def createCategory(name: String, permissionOverwrites: util.JsonOption[Seq[PermissionOverwrite]] = JsonUndefined, nsfw: util.JsonOption[Boolean] = JsonUndefined): CreateGuildChannel

    Create a category in this guild.

    Create a category in this guild.

    name

    The name of the channel.

    permissionOverwrites

    The permission overwrites for the channel.

    nsfw

    If the channel is NSFW.

  8. def createRole(name: Option[String] = None, permissions: Option[Permission] = None, color: Option[Int] = None, hoist: Option[Boolean] = None, icon: Option[ImageData] = None, unicodeEmoji: Option[String] = None, mentionable: Option[Boolean] = None): CreateGuildRole

    Create a new role.

    Create a new role.

    name

    The name of the role.

    permissions

    The permissions this role has.

    color

    The color of the role.

    hoist

    If this role is shown in the right sidebar.

    mentionable

    If this role is mentionable.

  9. def createTextChannel(name: String, topic: util.JsonOption[String] = JsonUndefined, rateLimitPerUser: util.JsonOption[Int] = JsonUndefined, permissionOverwrites: util.JsonOption[Seq[PermissionOverwrite]] = JsonUndefined, category: util.JsonOption[SnowflakeType[GuildCategory]] = JsonUndefined, nsfw: util.JsonOption[Boolean] = JsonUndefined): CreateGuildChannel

    Create a text channel in this guild.

    Create a text channel in this guild.

    name

    The name of the channel.

    topic

    The topic to give this channel.

    rateLimitPerUser

    The user ratelimit to give this channel.

    permissionOverwrites

    The permission overwrites for the channel.

    category

    The category id for the channel.

    nsfw

    If the channel is NSFW.

  10. def createVoiceChannel(name: String, bitrate: util.JsonOption[Int] = JsonUndefined, userLimit: util.JsonOption[Int] = JsonUndefined, permissionOverwrites: util.JsonOption[Seq[PermissionOverwrite]] = JsonUndefined, category: util.JsonOption[SnowflakeType[GuildCategory]] = JsonUndefined, nsfw: util.JsonOption[Boolean] = JsonUndefined): CreateGuildChannel

    Create a voice channel in this guild.

    Create a voice channel in this guild.

    name

    The name of the channel.

    bitrate

    The bitrate for the channel if it's a voice channel.

    userLimit

    The user limit for the channel if it's a voice channel.

    permissionOverwrites

    The permission overwrites for the channel.

    category

    The category id for the channel.

    nsfw

    If the channel is NSFW.

  11. def fetchAllChannels: GetGuildChannels

    Fetch all channels in this guild.

  12. def fetchAllGuildMember(limit: Option[Int] = None, after: Option[UserId] = None): ListGuildMembers

    Get all the guild members in this guild.

    Get all the guild members in this guild.

    limit

    The max amount of members to get.

    after

    Get userIds after this id.

  13. def fetchBan(userId: UserId): GetGuildBan

    Fetch a ban for a specific user.

  14. def fetchBans: GetGuildBans

    Fetch all the bans for this guild.

  15. def fetchGuildMember(userId: UserId): GetGuildMember

    Fetch a guild member by id.

  16. def fetchIntegrations: GetGuildIntegrations

    Fetch the integrations for this guild.

  17. def fetchInvites: GetGuildInvites

    Fetch the invites for this guild.

  18. def fetchPruneCount(days: Int, includeRoles: Seq[RoleId] = Nil): GetGuildPruneCount

    Check how many members would be removed if a prune was started now.

    Check how many members would be removed if a prune was started now.

    days

    The number of days to prune for.

  19. def fetchRoles: GetGuildRoles

    Fetch all the roles in this guild.

  20. def fetchSearchGuildMembers(query: String, limit: Int = 1): SearchGuildMembers

    Search for guild members in the given guild, who's username or nickname starts with the query string.

    Search for guild members in the given guild, who's username or nickname starts with the query string.

    query

    Query to search for.

    limit

    How many members to return at most.

  21. def fetchVoiceRegions: GetGuildVoiceRegions

    Fetch the voice regions for this guild.

  22. def fetchWidgetSettings: GetGuildWidgetSettings

    Fetch the guild embed for this guild.

  23. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def listActiveThreads: ListActiveGuildThreads

    Lists all the active threads in this guild.

    Lists all the active threads in this guild. Threads are ordered in descending order by their id.

  26. def modify(name: util.JsonOption[String] = JsonUndefined, verificationLevel: util.JsonOption[VerificationLevel] = JsonUndefined, defaultMessageNotifications: util.JsonOption[NotificationLevel] = JsonUndefined, explicitContentFilter: util.JsonOption[FilterLevel] = JsonUndefined, afkChannelId: util.JsonOption[NormalVoiceGuildChannelId] = JsonUndefined, afkTimeout: util.JsonOption[Int] = JsonUndefined, icon: util.JsonOption[ImageData] = JsonUndefined, ownerId: util.JsonOption[UserId] = JsonUndefined, splash: util.JsonOption[ImageData] = JsonUndefined, discoverySplash: util.JsonOption[ImageData] = JsonUndefined, banner: util.JsonOption[ImageData] = JsonUndefined, systemChannelId: util.JsonOption[TextGuildChannelId] = JsonUndefined, systemChannelFlags: util.JsonOption[SystemChannelFlags] = JsonUndefined, preferredLocale: util.JsonOption[String] = JsonUndefined, features: util.JsonOption[Seq[String]] = JsonUndefined, description: util.JsonOption[String] = JsonUndefined, premiumProgressBarEnabled: util.JsonOption[Boolean] = JsonUndefined): ModifyGuild

    Modify this guild.

    Modify this guild.

    name

    The new name of the guild

    verificationLevel

    The new verification level to use for the guild.

    defaultMessageNotifications

    The new notification level to use for the guild.

    afkChannelId

    The new afk channel of the guild.

    afkTimeout

    The new afk timeout in seconds for the guild.

    icon

    The new icon to use for the guild. Must be 1024x1024 png/jpeg/gif. Can be animated if the guild has the ANIMATED_ICON feature.

    ownerId

    Transfer ownership of this guild. Must be the owner.

    splash

    The new splash for the guild. Must be 16:9 png/jpeg. Only available if the guild has the INVITE_SPLASH feature.

    discoverySplash

    Thew new discovery slash for the guild's discovery splash. Only available if the guild has the DISCOVERABLE feature.

    banner

    The new banner for the guild. Must be 16:9 png/jpeg. Only available if the guild has the BANNER feature.

    systemChannelId

    The new channel which system messages will be sent to.

    systemChannelFlags

    The new flags for the system channel.

    preferredLocale

    The new preferred locale for the guild.

    features

    The new enabled features for the guild.

    description

    The new description for the guild if it is discoverable.

    premiumProgressBarEnabled

    If the boosting progress bar should be shown.

  27. def modifyChannelPositions(newPositions: Seq[ModifyGuildChannelPositionsData]): ModifyGuildChannelPositions

    Modify the positions of several channels.

    Modify the positions of several channels.

    newPositions

    A sequence indicating the channels to move, and where

  28. def modifyChannelPositions(newPositions: SnowflakeMap[GuildChannel, Int]): ModifyGuildChannelPositions

    Modify the positions of several channels.

    Modify the positions of several channels.

    newPositions

    A map between the channelId and the new positions.

  29. def modifyRolePositions(newPositions: SnowflakeMap[Role, Int]): ModifyGuildRolePositions

    Modify the positions of several roles

    Modify the positions of several roles

    newPositions

    A map from the role id to their new position.

  30. def modifyWidgetSettings(embed: GuildWidgetSettings): ModifyGuildWidget

    Modify a guild embed for this guild.

  31. def removeIntegration(id: IntegrationId): DeleteGuildIntegration

    Delete an integration.

    Delete an integration.

    id

    The integration id.

  32. def toString(): String
    Definition Classes
    Any
  33. def unban(userId: UserId): RemoveGuildBan

    Unban a user.

    Unban a user.

    userId

    The user to unban.

Inherited from AnyVal

Inherited from Any

Ungrouped