Skip to content

[WIP] Rewrite to use newer discord features#36

Draft
igalakhov wants to merge 8 commits intomasterfrom
rust-rewrite
Draft

[WIP] Rewrite to use newer discord features#36
igalakhov wants to merge 8 commits intomasterfrom
rust-rewrite

Conversation

@igalakhov
Copy link
Copy Markdown
Collaborator

This PR rewrites the bot to use newer discord constructs such as slash commands and interaction buttons.

Copy link
Copy Markdown

@whispersofthedawn whispersofthedawn left a 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<()> {
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator Author

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.

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

Successfully merging this pull request may close these issues.

2 participants