{"action":"created","issue":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1769","repository_url":"https://api.github.com/repos/hydrabolt/discord.js","labels_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1769/labels{/name}","comments_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1769/comments","events_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1769/events","html_url":"https://github.com/hydrabolt/discord.js/issues/1769","id":249682558,"number":1769,"title":"<VoiceChannel>.setName() bug","user":{"login":"Medallyon","id":17483199,"avatar_url":"https://avatars0.githubusercontent.com/u/17483199?v=4","gravatar_id":"","url":"https://api.github.com/users/Medallyon","html_url":"https://github.com/Medallyon","followers_url":"https://api.github.com/users/Medallyon/followers","following_url":"https://api.github.com/users/Medallyon/following{/other_user}","gists_url":"https://api.github.com/users/Medallyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Medallyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medallyon/subscriptions","organizations_url":"https://api.github.com/users/Medallyon/orgs","repos_url":"https://api.github.com/users/Medallyon/repos","events_url":"https://api.github.com/users/Medallyon/events{/privacy}","received_events_url":"https://api.github.com/users/Medallyon/received_events","type":"User","site_admin":false},"labels":[{"id":305742855,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/s:%20potentially%20fixed","name":"s: potentially fixed","color":"c746f2","default":false},{"id":523306242,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/t:%20REST","name":"t: REST","color":"31e097","default":false},{"id":440307444,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/t:%20voice","name":"t: voice","color":"31e097","default":false},{"id":246168563,"url":"https://api.github.com/repos/hydrabolt/discord.js/labels/type:%20bug","name":"type: bug","color":"af310e","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-11T16:15:54Z","updated_at":"2017-09-09T14:50:35Z","closed_at":"2017-08-12T09:55:56Z","author_association":"NONE","body":"**Please describe the problem you are having in as much detail as possible:**\r\n`<VoiceChannel>.setName(\"My Voice Channel\")` throws a `DiscordAPIError: Invalid Form Body`:\r\n```js\r\n{ DiscordAPIError: Invalid Form Body\r\n  bitrate: int value should be greater than 8000.\r\n    at item.request.gen.end (node_modules/discord.js/src/client/rest/handlers/RequestHandler.js:52:65)\r\n    at then (node_modules/snekfetch/src/index.js:257:21)\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:208:7)\r\n  name: 'DiscordAPIError',\r\n  message: 'Invalid Form Body\\nbitrate: int value should be greater than 8000.',\r\n  path: '/api/v7/channels/345586797092405249',\r\n  code: 50035 }\r\n```\r\n\r\n**Include a reproducible code sample here, if possible:**\r\n```js\r\nmsg.guild.channels.get(\"345586797092405249\").setName(\"My Voice Channel\").catch(console.error);\r\n```\r\n\r\n**Further details:**\r\n\r\n- discord.js version: 12.0.0-dev\r\n- node.js version: 8.1.4\r\n- Operating system: Ubuntu 14.04\r\n\r\n- [ ] I found this issue while running code on a __user account__\r\n- [x] I have also tested the issue on latest master, commit hash: 3c7869c1b7c04af72e37bb151290299db50cdc76\r\n"},"comment":{"url":"https://api.github.com/repos/hydrabolt/discord.js/issues/comments/328281885","html_url":"https://github.com/hydrabolt/discord.js/issues/1769#issuecomment-328281885","issue_url":"https://api.github.com/repos/hydrabolt/discord.js/issues/1769","id":328281885,"user":{"login":"Sir-Will","id":5961995,"avatar_url":"https://avatars0.githubusercontent.com/u/5961995?v=4","gravatar_id":"","url":"https://api.github.com/users/Sir-Will","html_url":"https://github.com/Sir-Will","followers_url":"https://api.github.com/users/Sir-Will/followers","following_url":"https://api.github.com/users/Sir-Will/following{/other_user}","gists_url":"https://api.github.com/users/Sir-Will/gists{/gist_id}","starred_url":"https://api.github.com/users/Sir-Will/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sir-Will/subscriptions","organizations_url":"https://api.github.com/users/Sir-Will/orgs","repos_url":"https://api.github.com/users/Sir-Will/repos","events_url":"https://api.github.com/users/Sir-Will/events{/privacy}","received_events_url":"https://api.github.com/users/Sir-Will/received_events","type":"User","site_admin":false},"created_at":"2017-09-09T14:50:35Z","updated_at":"2017-09-09T14:50:35Z","author_association":"NONE","body":"Hm, throws this error: `Error: Invalid tag name \"discord.js#master\": Tags may not have any characters that encodeURIComponent encodes.`\r\n\r\nI don't really have a choice, without this fix my bot is pretty much useless."}}
{"actor":{"display_login":"Sir-Will"}}