poshbotio / PoshBot

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

(#241) Add additional Discord channel types #242

Closed Windos closed 2 years ago

Windos commented 2 years ago

Description

This PR adds four additional channel types to the Discord implementation:

Adding GUILD_STAGE_VOICE resolves #241 and the others are included for completeness.

Related Issue

241

Motivation and Context

This enables PoshBot to connect to servers that happen to have temporary channels, such as Stages or Threads at the time that it connects to the server.

How Has This Been Tested?

I have made this change to PoshBot on my local machine, and it resolved my issue connecting to the Chocolatey server which happens to currently have a Stage channel running.

For completeness, I also tested against a server without a Stage running to ensure it didn't affect that (not that I expected editing an enum to have affected that.)

Screenshots (if appropriate):

N/A - There are screenshots of the issue this fixes in #241

Types of changes

Checklist:

devblackops commented 2 years ago

Looks good @Windos. Thanks!