Skip to content

Commit

Permalink
Does this prevent 400 errors from Cloudflare?
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 26, 2024
1 parent 538a871 commit 1e482e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/discord/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Async
module Discord
class Client < Async::REST::Resource
ENDPOINT = Async::HTTP::Endpoint.parse("https://discord.com/api/v10/")
USER_AGENT = "#{self.name} (https://github.com/socketry/async-discord, v#{Async::Discord::VERSION})"
USER_AGENT = "DiscordBot (https://github.com/socketry/async-discord, v#{Async::Discord::VERSION})"

def authenticated(bot: nil, bearer: nil)
headers = {}
Expand Down

0 comments on commit 1e482e4

Please sign in to comment.