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 category permission assigned to a user or role.

    Parameters

    • guildID: string

      ID of the guild where the channel is in

    • categoryID: number

      ID of the category

    • targetID: string | number

      ID of the user (string) or role (number) to assign the permission to

    • options: POSTChannelCategoryUserPermissionBody

      Permission options

      Warning: targetID must have the correct type (number=role, string=user).

    Returns Promise<Permission>

  • 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 guild category.

    Parameters

    • guildID: string

      ID of the guild to create a category in.

    • categoryID: number

      ID of the category you want to read.

    Returns Promise<GuildCategory>

  • Delete a category permission.

    Parameters

    • guildID: string

      ID of the guild where the channel is in

    • categoryID: number

      ID of the category

    • targetID: string | number

      ID of the user or role to delete the permission from

    Returns Promise<void>

  • 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>

  • Update a category permission.

    Parameters

    • guildID: string

      ID of the server the category is in

    • categoryID: number

      ID of the category

    • targetID: string | number

      ID of the user (string) or role (number) to assign the permission to.

    • options: PATCHChannelCategoryUserPermissionBody

      Edit options

      Warning: targetID must have the correct type (number=role, string=user).

    Returns Promise<Permission>

  • 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>

  • Read a guild category.

    Parameters

    • guildID: string

      ID of the guild to create a category in.

    • categoryID: number

      ID of the category you want to read.

    Returns Promise<GuildCategory>

  • Get permission coming from a category.

    Parameters

    • guildID: string

      ID of the guild where the channel is in

    • categoryID: number

      ID of the category the permission is in

    • targetID: string | number

      ID of the user (string) or role (number) to get the permission for

      Warning: targetID must have the correct type (number=role, string=user).

    Returns Promise<Permission>

  • Get permissions of a category.

    Parameters

    • guildID: string

      ID of the server the category is in.

    • categoryID: number

      ID of the category the permissions are in

    Returns Promise<Permission[]>

  • Get role permissions from a specified category.

    Parameters

    • guildID: string

      ID of the guild where the channel is in

    • categoryID: number

      ID of the category the permissions are in

    Returns Promise<Permission[]>

  • Get user permissions from a specified category.

    Parameters

    • guildID: string

      ID of the guild where the channel is in

    • categoryID: number

      ID of the category the permissions are in

    Returns Promise<Permission[]>

  • 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>