Sha256: a5b069538ceab5439402417f04edfdbc8081aebe81bb603f6cbbb67dffeecd4d
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 Bytes
Contents
# frozen_string_literal: true module Calliope # Generic class for events. module Events # Raised whenever the voice websocket closes. class SocketClosed # @return [Integer] attr_reader :code # @return [Integer] attr_reader :guild # @return [Object] attr_reader :client # @return [String] attr_reader :reason # @return [Boolean] attr_reader :remote alias remote? remote # @!visibility private # @param payload [Hash] # @param client [Client] def initialize(payload, client) @client = client @code = payload["code"] @guild = payload["guildId"] @reason = payload["reason"] @remote = payload["byRemote"] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calliope-link-1.0.2 | lib/calliope/events/voice.rb |
calliope-link-1.0.1 | lib/calliope/events/voice.rb |
calliope-link-1.0.0 | lib/calliope/events/voice.rb |