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

Channel List command #5

Closed
MichaelHHall opened this issue Mar 6, 2021 · 1 comment
Closed

Channel List command #5

MichaelHHall opened this issue Mar 6, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Projects

Comments

@MichaelHHall
Copy link

Currently we have the phenomenal -yeet command. But with no way to see the available channels, we lack a good way to reliably send messages to other servers which we may not be members of. the current workaround of a $echo -yeet loop is unreliable and a nuisance to the channels it lands in. I propose that we include a command to list all of the channels of which bean stalk is a member, including the name and ID of each channel (and possibly the server name if you can work out the formatting)

Context

Most programs allow for a programmatic way of viewing all of the various options they can use in their commands. In many, that simply involves a list of args and their possible values being produced by the --help arg, but in some, there is an entirely separate command that lists out a database or other data to be used in a different command. Either of these approaches could be effective here.

Possible Fix

The bot should have an attribute showing all of the guilds it is a member of. For example, the discord.py bot has a bot.guilds attribute that is a list of guilds. Ideally each guild object will have an attribute for all text channels (in discord.py it is text_channels). From here it would be simple to iterate over each guild and each text channel in turn and print output based on that.

@ct-bess
Copy link
Owner

ct-bess commented Mar 6, 2021

ok expect a -bean channels soon ™️

@ct-bess ct-bess added the enhancement New feature or request label Mar 6, 2021
@ct-bess ct-bess self-assigned this Mar 6, 2021
@ct-bess ct-bess added this to To do in April 2021 Mar 6, 2021
@ct-bess ct-bess closed this as completed in 4f8e154 Mar 7, 2021
@ct-bess ct-bess moved this from To do to Done in April 2021 Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants