-
Notifications
You must be signed in to change notification settings - Fork 8
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
[WIP] Rewrite to use newer discord features #36
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't run the bot and all yet, but these are a couple minor things that could clean this up a bit. Your discretion on any of them, of course.
|
||
/// Utility command for quickly registering/unregistering commands | ||
#[poise::command(prefix_command)] | ||
pub async fn register(ctx: Context<'_>) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If !register
is a command, should it be role-locked to the admins/staff? Maybe default to everyone (for other servers) but lock it when you have an env var passed, since this feels like a more impactful action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this will be admin protected eventually. It's just there for now for testing purposes.
This PR rewrites the bot to use newer discord constructs such as slash commands and interaction buttons.