Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • GuildManager

Index

Methods

  • Begins a prune of members in a guild

    Parameters

    • guildId: string

      The ID of the guild you want to prune.

    • options: BeginGuildPruneOptions

      BeginGuildPruneOptions

    • Optional reason: string

    Returns Promise<GuildPruneCountResponse>

    GuildPruneCountResponse object.

  • Gets the number of members that would be removed in a prune operation

    Parameters

    • guildId: string

      The ID of the guild you want to get the prune count of.

    • options: GetGuildPruneCountOptions

      GetGuildPruneCountOptions

    Returns Promise<GuildPruneCountResponse>

    Number of members that would be removed in a prune operation.

  • Modifys a role in a guild

    Parameters

    • guildId: string

      The ID of the guild you want to Modify a role in.

    • options: GuildRoleOptions

      GuildRoleOptions

    • Optional reason: string

    Returns Promise<Role>

    Role object

  • RemoveGuildBan(guildId: string, userId: string, reason?: string): Promise<Ban>
  • Removes the ban of a user in a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to Remove the ban from.

    • userId: string

      The user's ID.

    • Optional reason: string

    Returns Promise<Ban>

    Ban object

  • Add a user to a guild

    Parameters

    • guildId: string

      The ID of the guild you want to add a member to.

    • userId: string

      The user's ID.

    • options: AddGuildMemberOptions

      {

    Returns Promise<GuildMember>

    GuildMember object.

  • addGuildMemberRole(guildId: string, userId: string, roleId: string, reason?: string): Promise<GuildMember>
  • Adds a role to a guild member

    Parameters

    • guildId: string

      The ID of the guild you want to add the role to.

    • userId: string

      The user's ID

    • roleId: string

      The ID of the role you want to add to the user.

    • Optional reason: string

    Returns Promise<GuildMember>

    A GuildMember object.

  • Creates a guild

    Parameters

    Returns Promise<Guild>

    Guild object

  • Creates the ban of a user in a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to create the ban from.

    • userId: string

      The user's ID.

    • options: CreateGuildBanOptions = {}

    Returns Promise<Ban>

    Ban object

  • Creates a guild channel.

    Parameters

    • guildId: string

      The ID of the guild you want to create a channel in.

    • option: CreateGuildChannelOptions

      CreateGuildChannelOptions

    Returns Promise<Channel>

    Channel object

  • Creates a role in a guild

    Parameters

    • guildId: string

      The ID of the guild you want to create a role in.

    • options: GuildRoleOptions = {}

      GuildRoleOptions = {}

    • Optional reason: string

    Returns Promise<Role>

    Role object

  • deleteGuild(guildId: string): Promise<void>
  • Delete a guild

    Parameters

    • guildId: string

      The ID of the guild you want to delete.

    Returns Promise<void>

  • deleteGuildIntegrations(guildId: string, integrationId: string, reason?: string): Promise<void>
  • Deletes a integrations of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to delete a integrations from.

    • integrationId: string

      The ID of the integration you want to delete.

    • Optional reason: string

    Returns Promise<void>

  • deleteGuildRole(guildId: string, roleId: string, reason?: string): Promise<void>
  • Deletes a role from a guild

    Parameters

    • guildId: string

      The ID of the guild you want to delete the role from.

    • roleId: string

      The ID of the role you want to delete.

    • Optional reason: string

    Returns Promise<void>

  • getGuild(guildId: string): Promise<Guild>
  • Gets a guild by its ID

    Parameters

    • guildId: string

      The ID of the guild you want to get.

    Returns Promise<Guild>

    Guild object

  • getGuildBan(guildId: string, userId: string): Promise<Ban>
  • Gets the ban of a user in a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the ban from.

    • userId: string

      The user's ID.

    Returns Promise<Ban>

    Ban object

  • Gets the bans of a guild

    Parameters

    • guildId: string

      The ID of the guild to get the bans from.

    • options: GetGuildBansOptions = {}

      GetGuildBansOptions = {}

    Returns Promise<Ban[]>

    Array of bans.

  • getGuildChannels(guildId: string): Promise<Channel[]>
  • Gets all the channels in a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the channels from.

    Returns Promise<Channel[]>

    Array of channels

  • getGuildIntegrations(guildId: string): Promise<Integration[]>
  • Gets the integrations of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the integrations from.

    Returns Promise<Integration[]>

    An array of Integration objects.

  • getGuildInvites(guildId: string): Promise<Invite[]>
  • Gets the invites of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the invites from.

    Returns Promise<Invite[]>

    An array of Invite objects.

  • getGuildMember(guildId: string, userId: string): Promise<GuildMember>
  • Get a guild member.

    Parameters

    • guildId: string

      The ID of the guild you want to get the member from.

    • userId: string

      The user's ID.

    Returns Promise<GuildMember>

    A GuildMember object

  • Gets the guild preview.

    Parameters

    • guildId: string

      The ID of the guild you want to get the preview of.

    Returns Promise<GuildPreview>

    GuildPreview object

  • getGuildRoles(guildId: string): Promise<Role[]>
  • Gets the roles of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the roles from.

    Returns Promise<Role[]>

    Array of Role objects.

  • getGuildVanityUrl(guildId: string): Promise<Invite>
  • Gets the guild's vanity URL.

    Parameters

    • guildId: string

      The ID of the guild you want to get the vanity URL for.

    Returns Promise<Invite>

    The guild's vanity URL.

  • getGuildVoiceRegions(guildId: string): Promise<VoiceRegion[]>
  • Gets the voice regions of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the voice regions of.

    Returns Promise<VoiceRegion[]>

    An array of VoiceRegion objects.

  • Gets the welcome screen of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the welcome screen of.

    Returns Promise<WelcomeScreen>

    WelcomeScreen

  • Gets the guild widget.

    Parameters

    • guildId: string

      The ID of the guild you want to get the widget for.

    Returns Promise<GetGuildWidget>

    GetGuildWidget

  • Gets the widget settings of a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the widget settings from.

    Returns Promise<GuildWidgetSettings>

    An array of widget settings objects.

  • List active threads in a guild

    Parameters

    • guildId: string

      The ID of the guild you want to get the active threads from.

    Returns Promise<ListActiveThreadsResponse>

    Array of threads and members

  • Lists all the members in a guild.

    Parameters

    • guildId: string

      The ID of the guild you want to get the members of.

    • option: ListGuildMembersOptions = ...

      ListGuildMembersOptions @default {limit:1000}

    Returns Promise<GuildMember[]>

    Array of GuildMember objects.

  • Modify the current user's guild member

    Parameters

    • guildId: string

      The ID of the guild you want to modify the current member of.

    • options: ModifyCurrentGuildMemberOptions

      ModifyCurrentGuildMemberOptions

    • Optional reason: string

    Returns Promise<GuildMember>

    GuildMember object.

  • Modify the current user voice state

    Parameters

    Returns Promise<void>

  • Modify a guild

    Parameters

    • guildId: string

      The ID of the guild you want to modify.

    • option: ModifyGuildOptions

      ModifyGuildOptions

    Returns Promise<Guild>

    Guild object

  • Modify the position of a guild channel

    Parameters

    Returns Promise<void>

  • Modify a guild member

    Parameters

    • guildId: string

      The ID of the guild you want to modify the member of.

    • userId: string

      The user's id

    • options: ModifyGuildMemberOptions

      ModifyGuildMemberOptions

    • Optional reason: string

    Returns Promise<GuildMember>

    GuildMember object.

  • Modify the positions of a set of role objects for the guild

    Parameters

    • guildId: string

      The ID of the guild you want to modify the role position of.

    • options: ModifyGuildRolePositionOptions

      ModifyGuildRolePositionOptions

    • Optional reason: string

    Returns Promise<Role[]>

    Array of roles.

  • Modified the welcome screen of a guild.

    Parameters

    Returns Promise<WelcomeScreen>

    WelcomeScreen

  • Modify a user voice state

    Parameters

    Returns Promise<void>

  • removeGuildMember(guildId: string, userId: string, reason?: string): Promise<void>
  • Removes a guild member

    Parameters

    • guildId: string

      The ID of the guild you want to remove.

    • userId: string

      The user's ID

    • Optional reason: string

    Returns Promise<void>

  • removeGuildMemberRole(guildId: string, userId: string, roleId: string, reason?: string): Promise<GuildMember>
  • Removes a role to a guild member

    Parameters

    • guildId: string

      The ID of the guild you want to remove the role to.

    • userId: string

      The user's ID

    • roleId: string

      The ID of the role you want to remove to the user.

    • Optional reason: string

    Returns Promise<GuildMember>

    A GuildMember object.

  • Searches for members in a guild.

    Parameters

    Returns Promise<GuildMember[]>

    Array of GuildMember objects.

Constructors

  • Parameters

    • token: string

      Bot's token

    • tokenType: string
    • version: APIVersions

      API Version

    Returns GuildManager

Properties

version: APIVersions

API Version

#token: string

Bot's token

#tokenType: string

Token type

Generated using TypeDoc