Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for discord deprecations #179

Merged
merged 5 commits into from
Oct 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions lib/discordrb/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -295,11 +295,11 @@ def identify
# @param properties [Hash<Symbol => 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
Expand Down