Hierarchy

  • Guilds

Constructors

Methods

  • Award a member using the built-in EXP system.

    Parameters

    • guildID: string

      ID of a guild.

    • memberID: string

      ID of a member.

    • amount: number

      Amount of experience.

    Returns Promise<number>

  • Award every members of a guild having a role using the built-in EXP system.

    Parameters

    • guildID: string

      ID of a guild.

    • roleID: number

      ID of a role.

    • amount: number

      Amount of experience.

    Returns Promise<void>

  • Ban a guild member.

    Parameters

    • guildID: string

      ID of the guild the member is in.

    • memberID: string

      ID of the member to ban.

    • Optional reason: string

      The reason of the ban.

    Returns Promise<BannedMember>

  • Create a channel in a specified guild.

    Type Parameters

    Parameters

    • guildID: string

      ID of a guild.

    • name: string

      Name of the new channel.

    • type: APIChannelCategories

      Type of the new channel. (e.g: chat)

    • Optional options: CreateChannelOptions

      New channel's additional options.

    Returns Promise<T>

  • Create a webhook

    Parameters

    • guildID: string

      ID of a guild.

    • channelID: string

      ID of a channel.

    • name: string

      Name of the new webhook.

    Returns Promise<Webhook>

  • Delete a channel.

    Parameters

    • channelID: string

      ID of the channel to delete.

    Returns Promise<void>

  • Delete a guild group

    Parameters

    • guildID: string

      ID of the guild where the group is in.

    • groupID: string

      ID of the group to delete.

    Returns Promise<void>

  • Delete a guild role.

    Parameters

    • guildID: string

      ID of the guild where the role to delete is in

    • roleID: number

      ID of the role to delete

    Returns Promise<void>

  • Delete a webhook

    Parameters

    • guildID: string

      ID of a guild.

    • webhookID: string

      ID of an existent webhook.

    Returns Promise<void>

  • Edit a member.

    Parameters

    • guildID: string

      ID of the guild the member is in.

    • memberID: string

      ID of the the member to edit.

    • options: EditMemberOptions

      Edit options.

    Returns Promise<void>

  • This method is used to get a specific Guild.

    Note: Guild = Server

    Parameters

    • guildID: string

      The ID of the guild you'd like to get.

    Returns Promise<Guild>

  • This method is used to get a specific guild member.

    Parameters

    • guildID: string

      The ID of the Guild.

    • memberID: string

      The ID of the Guild Member to get.

    Returns Promise<Member>

  • Get guild member permissions.

    Parameters

    • guildID: string

      ID of the guild.

    • memberID: string

      ID of the member.

    Returns Promise<Permissions[]>

  • This method is used to get a list of guild member.

    Parameters

    • guildID: string

      ID of the guild to get members.

    Returns Promise<Member[]>

  • Get a guild role.

    Parameters

    • guildID: string

      ID of the guild where the role is.

    • roleID: number

      ID of the role to get.

    Returns Promise<GuildRole>

  • This method is used to get a specific webhook.

    Parameters

    • guildID: string

      ID of a guild.

    • webhookID: string

      ID of a webhook.

    Returns Promise<Webhook>

  • This method is used to get a list of Webhook.

    Parameters

    • guildID: string

      ID of a guild.

    • channelID: string

      ID of a channel.

    Returns Promise<Webhook[]>

  • Add a member to a group

    Parameters

    • groupID: string

      ID of a guild group.

    • memberID: string

      ID of a member.

    Returns Promise<void>

  • Add a role to a member

    Parameters

    • guildID: string

      ID of a guild.

    • memberID: string

      ID of a member.

    • roleID: number

      ID of a role.

    Returns Promise<void>

  • Remove a member from a group

    Parameters

    • groupID: string

      ID of a guild group.

    • memberID: string

      ID of a member.

    Returns Promise<void>

  • Remove a role from a member

    Parameters

    • guildID: string

      ID of a guild.

    • memberID: string

      ID of a member.

    • roleID: number

      ID of a role.

    Returns Promise<void>

  • Unban a guild member.

    Parameters

    • guildID: string

      ID of the guild the member was in.

    • memberID: string

      ID of the member to unban.

    Returns Promise<void>

  • Remove a member from a guild.

    Parameters

    • guildID: string

      The ID of the guild the member is in.

    • memberID: string

      The ID of the member to kick.

    Returns Promise<void>

  • Set a member's xp using the built-in EXP system.

    Parameters

    • guildID: string

      ID of a guild.

    • memberID: string

      ID of a member.

    • amount: number

      Total amount of experience.

    Returns Promise<number>