discord.py: Bug / Question
Summary
Bug with edit topic VOICE channel
Minimal Reproducible Code
@client.event
async def on_voice_state_update(member, before, after):
if after.channel and after.channel.id == vc_id:
channel = member.guild.system_channel
if channel is not None:
await channel.edit(name=channel.name, topic="X")
Actual Results
When the user join the specific channel I get this error : 2024-04-12 20:43:41 ERROR discord.client Ignoring exception in on_voice_state_update Traceback (most recent call last): File “/usr/local/lib/python3.9/dist-packages/discord/client.py”, line 441, in _run_event await coro(*args, **kwargs) File “/home/autres/NS.py”, line 142, in on_voice_state_update await channel.edit(name=channel.name, topic=“X”) File “/usr/local/lib/python3.9/dist-packages/discord/channel.py”, line 381, in edit payload = await self._edit(options, reason=reason) File “/usr/local/lib/python3.9/dist-packages/discord/abc.py”, line 502, in _edit return await self._state.http.edit_channel(self.id, reason=reason, **options) File “/usr/local/lib/python3.9/dist-packages/discord/http.py”, line 738, in request raise Forbidden(response, data) discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions Traceback (most recent call last): The bot has permission 'Statu voice set" on his role + on channel so I don’t understand why he won’t.
Intents
all
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
Hello, Can someone help me.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
Anyway. Thx for ur help. Im gonna find the solution by myself. Cause even if I put u proof from permissions ur kidding me and that’s not cool.
I can read thx. But even if bot has all permission. “Missing permission” so its a pb from my side ??? Can’t understand that sry.