Sha256: c23ced2efdbb2cc45b724b92d2e28967c52d26ae685a844dcef77d3a244cadcc

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

module Discorb
  #
  # Represents a partial custom emoji in discord.
  class PartialEmoji < Discorb::DiscordModel
    #
    # Initialize a new partial custom emoji.
    # @private
    #
    # @param [Hash] data The data of the emoji.
    def initialize: (Discorb::json data) -> void

    #
    # Format the emoji for URI.
    #
    # @return [String] the formatted emoji.
    %a{pure}
    def to_uri: -> String

    %a{pure}
    def inspect: -> String

    #
    # Format the emoji for sending.
    #
    # @return [String] the formatted emoji.
    %a{pure}
    def to_s: -> String

    # @return [Discorb::Snowflake] The ID of the emoji.
    attr_reader id: Discorb::Snowflake

    # @return [String] The name of the emoji.
    attr_reader name: String

    # @return [Boolean] Whether the emoji is deleted.
    attr_reader deleted: bool
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discorb-0.20.0 sig/discorb/partial_emoji.rbs
discorb-0.19.0 sig/discorb/partial_emoji.rbs