poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Discord Backend errors when connecting to server with "Stage" channel #241

Closed Windos closed 2 years ago

Windos commented 2 years ago

Expected Behavior

Discord backed connects without error.

Current Behavior

When connecting to a Discord server that currently has a Stage channel running, you get an error stating that it cannot find that channel type in the list of valid enumeration values.

Example error

Possible Solution

The specific channel type here is 13 / GUILD_STAGE_VOICE

The solution is to add this to the enum on line 7354 of the (compiled) PoshBot.psm1 or more helpfully here.

There are also a few other channel types that it couldn't hurt to add, just in case. The full list can be found here.

I've manually edited this on my end and it is working now.

Steps to Reproduce (for bugs)

Have a Stage running.

image

Start PoshBot, get error (see Current Behavior above)

Context

Stage Channels are a recent addition to Discord.

Your Environment