Sha256: d9e9a6d282b997e2ab7b9d7b7385d765faa2b900c47a183f5358c2e08535a42c
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module Discorb # # Represents an activity for Gateway Command. class Activity TYPES: untyped # # Initializes a new Activity. # # @param [String] name The name of the activity. # @param [:playing, :streaming, :listening, :watching, :competing] type The type of activity. # @param [String] url The URL of the activity. def initialize: (String name, ?Symbol `type`, ?String? url) -> void # # Converts the activity to a hash. # # @return [Hash] A hash representation of the activity. def to_hash: -> Discorb::json %a{pure} def inspect: -> String end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.20.0 | sig/discorb/activity.rbs |
discorb-0.19.0 | sig/discorb/activity.rbs |