diff --git a/lib/discordrb/gateway.rb b/lib/discordrb/gateway.rb index 4b4cf9bbe..d09610140 100644 --- a/lib/discordrb/gateway.rb +++ b/lib/discordrb/gateway.rb @@ -280,11 +280,11 @@ def send_heartbeat(sequence) def identify compress = @compress_mode == :large send_identify(@token, { - '$os': RUBY_PLATFORM, - '$browser': 'discordrb', - '$device': 'discordrb', - '$referrer': '', - '$referring_domain': '' + os: RUBY_PLATFORM, + browser: 'discordrb', + device: 'discordrb', + referrer: '', + referring_domain: '' }, compress, LARGE_THRESHOLD, @shard_key, @intents) end @@ -295,11 +295,11 @@ def identify # @param properties [Hash String>] A list of properties for Discord to use in analytics. The following # keys are recognised: # - # - "$os" (recommended value: the operating system the bot is running on) - # - "$browser" (recommended value: library name) - # - "$device" (recommended value: library name) - # - "$referrer" (recommended value: empty) - # - "$referring_domain" (recommended value: empty) + # - "os" (recommended value: the operating system the bot is running on) + # - "browser" (recommended value: library name) + # - "device" (recommended value: library name) + # - "referrer" (recommended value: empty) + # - "referring_domain" (recommended value: empty) # # @param compress [true, false] Whether certain large packets should be compressed using zlib. # @param large_threshold [Integer] The member threshold after which a server counts as large and will have to have