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

Get Community (and Instance) Info/Sidebar #51

Open
rcmaehl opened this issue Jul 17, 2023 · 1 comment
Open

Get Community (and Instance) Info/Sidebar #51

rcmaehl opened this issue Jul 17, 2023 · 1 comment

Comments

@rcmaehl
Copy link

rcmaehl commented Jul 17, 2023

Hi,

Can a feature be added to get the source text of a communities' (and instances') sidebar? I would like to be able to limit where my bot is run and allowing instance and community owners to set specific markdown in the sidebar seems like the easiest way to do this.

Thanks!

@rcmaehl rcmaehl changed the title Get Community Info/Sidebar Get Community (and Server) Info/Sidebar Jul 17, 2023
@rcmaehl rcmaehl changed the title Get Community (and Server) Info/Sidebar Get Community (and Instance) Info/Sidebar Jul 17, 2023
@SleeplessOne1917
Copy link
Owner

The community sidebar is included in responses for getting posts and comments. Suppose you have a post handler for example and that the arg for that handler is called postView: you can get it at postView.community.description. The bot library currently doesn't have a good way to check instance sidebars.

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