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

fix channel bitrate calculation #568

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

Commandserver
Copy link
Member

@Commandserver Commandserver commented Nov 28, 2022

the issue was when creating a voice channel with a bitrate of 96,

dpp::channel channel;
		channel.set_name("test-voice-channel");
		channel.set_guild_id(GUILD_ID);
		channel.set_type(dpp::channel_type::CHANNEL_VOICE);
		channel.set_bitrate(96);
		channel.set_user_limit(2);
		bot.channel_create(channel);

i got this error:

ERROR: Error 50035 [Invalid Form Body] on API request, returned content was: {"code": 50035, "errors": {"bitrate": {"_errors": [{"code": "NUMBER_TYPE_MAX", "message": "int value should be less than or equal to 96000."}]}}, "message": "Invalid Form Body"}

The bitrate attribute will now be multiplied by 1000 instead of 1024.

@netlify
Copy link

netlify bot commented Nov 28, 2022

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit bd4778e
🔍 Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/638504dc5492a9000823f703
😎 Deploy Preview https://deploy-preview-568--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@braindigitalis braindigitalis merged commit 0050456 into brainboxdotcc:dev Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants