We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Whenever I try calling ctx.guild.region.value on a server with the region set to "Europe", it sends an error
ctx.guild.region.value
>>> ctx.guild.region.value
Return value of the region
File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 898, in process_commands await self.invoke(ctx) File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 863, in invoke await ctx.command.invoke(ctx) File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 721, in invoke await self.prepare(ctx) File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 687, in prepare await self.call_before_hooks(ctx) File "/usr/local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 643, in call_before_hooks await hook(ctx) File "/home/alexflipnote/Desktop/xelA/cogs/music.py", line 70, in cog_before_invoke await self.ensure_voice(ctx) File "/home/alexflipnote/Desktop/xelA/cogs/music.py", line 95, in ensure_voice player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=ctx.guild.region.value) AttributeError: 'str' object has no attribute 'value'
The text was updated successfully, but these errors were encountered:
Seems to be fixed in master.
Sorry, something went wrong.
Yupp, worked to install through master branch on GitHub. Was using 1.2.4 as that was the latest discord.py package provided by pip. Thank you.
discord.py
In the future, please make sure you're using the latest development version when reporting issues.
No branches or pull requests
Summary
Whenever I try calling
ctx.guild.region.value
on a server with the region set to "Europe", it sends an errorReproduction Steps
Expected Results
Return value of the region
Actual Results
Checklist
System Information
The text was updated successfully, but these errors were encountered: