Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server does not have a channel #48

Open
Technomancer55 opened this issue Jun 10, 2020 · 1 comment
Open

Server does not have a channel #48

Technomancer55 opened this issue Jun 10, 2020 · 1 comment

Comments

@Technomancer55
Copy link

while running console with a bot token with administrator privileges under the target server, entering the
guild
command to select said server, the console returns
Server does not have a channel
despite having numerous channels

@Mnpn
Copy link
Member

Mnpn commented Jun 10, 2020

Looked into this real quick, it would seemingly only happen if no channel in the guild has a "position" value (which results in an empty channel, leading to it failing the error check), does it fix itself if you drag a channel around and back? I can't seem to find a reliable way to replicate this issue, unfortunately.

The code at commands_navigate.go#L103 seems to me like it was created back in the day when all Discord servers had a permanent "first" channel. Perhaps a better way to go about that check would be to first check if there are any channels in the array, see if any channel has the name "general", or otherwise just return the first channel of the array. However, I'm still not quite sure how to replicate this issue to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants