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

Guild had no attribute 'region' #8168

Closed
3 tasks done
zairullahdev opened this issue Jun 20, 2022 · 4 comments
Closed
3 tasks done

Guild had no attribute 'region' #8168

zairullahdev opened this issue Jun 20, 2022 · 4 comments
Labels
invalid This is not right.

Comments

@zairullahdev
Copy link

Summary

Literally any fix for this?

Reproduction Steps

by calling ctx.guild.region

Minimal Reproducible Code

`player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=str(ctx.guild.region))`

Expected Results

The old version could do this.

Actual Results

Guild has no attribute 'region'

Intents

discord.Intents().All()

System Information

  • Python v3.10.5-final
  • discord.py v2.0.0-alpha
    • discord.py pkg_resources: v2.0.0a4367+g64849ebc
  • aiohttp v3.7.4.post0
  • system info: Linux 4.19.127-gfe17e779f-dirty Fix issue with author changing type #1 SMP PREEMPT Mon Mar 7 10:54:37 CST 2022

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

@zairullahdev zairullahdev added the unconfirmed bug A bug report that needs triaging label Jun 20, 2022
@GnomedDev
Copy link
Contributor

Region was moved to be voice channel specific by discord.

@Rapptz Rapptz added invalid This is not right. and removed unconfirmed bug A bug report that needs triaging labels Jun 20, 2022
@Rapptz
Copy link
Owner

Rapptz commented Jun 20, 2022

@Rapptz Rapptz closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
@zairullahdev
Copy link
Author

How to replace the code with it?

@Rapptz
Copy link
Owner

Rapptz commented Jun 20, 2022

Regions are now per voice channel, so you'll have to do voice_channel.rtc_region where voice_channel is the channel you're connecting to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This is not right.
Projects
None yet
Development

No branches or pull requests

3 participants