poshbotio / PoshBot

Powershell-based bot framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Windos opened this issue · comments

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

  • Module version used: 0.13.0
  • Operating System and PowerShell version: Windows Server 2022, Windows PowerShell 5.1