Sha256: f2ef0487da0cbfbab5cd65eacb9986bfa337f0f05056192c03996cb1d9b5e5f0
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 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 def inspect: -> String end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.18.1 | sig/discorb/activity.rbs |
discorb-0.18.0 | sig/discorb/activity.rbs |