Options
All
  • Public
  • Public/Protected
  • All
Menu

Emojis resource

Hierarchy

  • EmojisResource

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • create(guildId: string, data: RESTPostAPIGuildEmojiJSONBody): Promise<APIEmoji>
  • Create an emoji

    Parameters

    • guildId: string

      ID of the guild to create the emoji in

    • data: RESTPostAPIGuildEmojiJSONBody

      Emoji data

    Returns Promise<APIEmoji>

delete

  • delete(guildId: string, emojiId: string): Promise<never>
  • Delete an emoji

    Parameters

    • guildId: string

      ID of the emoji's guild

    • emojiId: string

      The ID of the emoji

    Returns Promise<never>

edit

  • edit(guildId: string, emojiId: string, data: RESTPatchAPIGuildEmojiJSONBody): Promise<APIEmoji>
  • Edit an emoji

    Parameters

    • guildId: string

      ID of the emoji's guild

    • emojiId: string

      The ID of the emoji

    • data: RESTPatchAPIGuildEmojiJSONBody

      Data to edit with

    Returns Promise<APIEmoji>

get

  • get(guildId: string, emojiId: string): Promise<APIEmoji>
  • Get a single emoji from a guild

    Parameters

    • guildId: string

      ID of the emoji's guild

    • emojiId: string

      The ID of the emoji

    Returns Promise<APIEmoji>

getMany

  • getMany(guildId: string): Promise<RESTGetAPIGuildEmojisResult>
  • Get all emojis from a guild

    Parameters

    • guildId: string

      ID of the emoji's guild

    Returns Promise<RESTGetAPIGuildEmojisResult>

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Static method

Generated using TypeDoc