TPBubbleU / DeadwoodObituary

Skull Trail Canyon Discord Bot
1 stars 0 forks source link

auto voicechannel not working with private posse's #1

Open chriswortman opened 1 year ago

chriswortman commented 1 year ago

After trying to create a private posse with just a few people, the bot no longer creates a new voice channel when joining 'round up a posse'. I tried removing everyone from the posse, and still no new voice channel.

image image

chriswortman commented 1 year ago

Was able to get it setup on my test server, skipped the spotify stuff, but am able to re-pro the issue.

Started the process of deleting a channel at 2023-01-10 22:23:19.073666
Started the process of making a new channel at 2023-01-10 22:23:20.564669
Ignoring exception in on_voice_state_update
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/client.py", line 352, in _run_event
    await coro(*args, **kwargs)
  File "//Bot.py", line 176, in on_voice_state_update
    newChannel = await guild.create_voice_channel(name=channelName, bitrate=96000, category=categoryChannel, overwrites=overwrites)
  File "/usr/local/lib/python3.9/dist-packages/discord/guild.py", line 1247, in create_voice_channel
    data = await self._create_channel(
  File "/usr/local/lib/python3.9/dist-packages/discord/guild.py", line 1043, in _create_channel
    payload = {'allow': allow.value, 'deny': deny.value, 'id': target.id}
AttributeError: 'NoneType' object has no attribute 'id'