Sha256: 368419cddf5312a10615e7f1c2bc23a8defdd47dfaa05a605d5a483b9e0e7b58
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
module Discorb # # Represents a reaction to a message. class Reaction < Discorb::DiscordModel # # Initialize a new reaction. # @private # # @param [Discorb::Message] message The message that this reaction is on. # @param [Hash] data The data of the reaction. def initialize: (Discorb::Message message, Discorb::json data) -> void # # Fetch the user that reacted with this emoji. # # @param (see Message#fetch_reacted_users) # # @return [Async::Task<Array<Discorb::User>>] The users that reacted with this emoji. def fetch_users: ( Discorb::emoji emoji, ?limit: Integer?, ?after: Discorb::Snowflake? ) -> Async::Task[::Array[Discorb::User]] # @return [Integer] The number of users that have reacted with this emoji. attr_reader count: Integer # @return [Discorb::Emoji, Discorb::PartialEmoji] The emoji that was reacted with. attr_reader emoji: Discorb::emoji # @return [Discorb::Message] The message that this reaction is on. attr_reader message: Discorb::Message # @return [Boolean] Whether client user reacted with this emoji. attr_reader me: bool end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.20.0 | sig/discorb/reaction.rbs |
discorb-0.19.0 | sig/discorb/reaction.rbs |