Skip to content

Commit

Permalink
update webhook URLs to v9 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored Jun 9, 2024
1 parent edad88d commit 913710f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/discordrb/webhooks/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def post_multipart(builder, components, wait)
end

def generate_url(id, token)
"https://discord.com/api/v8/webhooks/#{id}/#{token}"
"https://discord.com/api/v9/webhooks/#{id}/#{token}"
end
end
end
2 changes: 1 addition & 1 deletion spec/webhooks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
client = described_class.new(id: id, token: token)
url = client.instance_variable_get(:@url)

expect(url).to eq "https://discord.com/api/v8/webhooks/#{id}/#{token}"
expect(url).to eq "https://discord.com/api/v9/webhooks/#{id}/#{token}"
end

it 'takes a provided url' do
Expand Down

0 comments on commit 913710f

Please sign in to comment.