Sha256: 864d36fcb9ffe00ff07f3df49fca961433be7cc97f609c61d56a750e4031131d
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
module Discorb # # Represents a event handler. # This class shouldn't be instantiated directly. # Use {Client#on} instead. class EventHandler def initialize: (untyped block, Symbol? id, untyped metadata) -> void def inspect: -> String # # Calls the block associated with the event. def call: -> untyped # @return [Proc] the block to be called. attr_reader block: ^(*untyped) -> void # @return [Symbol] the event id. attr_reader id: Symbol? # @return [Hash] the event metadata. attr_reader metadata: ::Hash[untyped, untyped] # @return [Boolean] whether the event is once or not. attr_reader once: bool end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.18.1 | sig/discorb/event_handler.rbs |
discorb-0.18.0 | sig/discorb/event_handler.rbs |