Sha256: ef51a2eba6ae6e319b5f886522776d37c7882775bf5608d8f3d3eefc379bb83a
Contents?: true
Size: 845 Bytes
Versions: 2
Compression:
Stored size: 845 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. def to_uri: -> String def inspect: -> String # # Format the emoji for sending. # # @return [String] the formatted emoji. 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.18.1 | sig/discorb/partial_emoji.rbs |
discorb-0.18.0 | sig/discorb/partial_emoji.rbs |