Skip to content

Slash commands#212

Open
rhit-daughewd wants to merge 23 commits intodevfrom
Slash-Commands
Open

Slash commands#212
rhit-daughewd wants to merge 23 commits intodevfrom
Slash-Commands

Conversation

@rhit-daughewd
Copy link
Copy Markdown
Member

No description provided.

@budak7273 budak7273 requested a review from Borketh February 24, 2026 22:49
Copy link
Copy Markdown
Member

@Borketh Borketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I am not happy with this work. If we want slash commands to work at all, we MUST have feature parity with the text commands. There's a lot missing and a lot done without consulting the code and/or the woman who wrote it for help, and you have blindly relied on AI in places where it was very clearly wrong. Please also look at nextcord documentation. Things like interaction.followup.send incorrectly used instead of interaction.send are small mistakes that nevertheless cause errors and add up quickly.

Also remember to properly type-hint your new code with things like ctx_or_interaction : Context | Interaction

@Borketh
Copy link
Copy Markdown
Member

Borketh commented Feb 25, 2026

Read what I've changed as examples of why I'm not happy and what to do about it. Talk to me on discord about what is needed here if you're not sure.

@budak7273 budak7273 moved this from 🆕 New to 🏗 In progress in FICSIT-Fred Mar 10, 2026
@github-project-automation github-project-automation bot moved this to 🆕 Unconfirmed in Rose Senior Project Mar 10, 2026
@budak7273 budak7273 moved this from 🆕 Unconfirmed to 🏗 In progress in Rose Senior Project Mar 10, 2026
@rhit-daughewd rhit-daughewd requested a review from Borketh March 16, 2026 01:36
Copy link
Copy Markdown
Member

@Borketh Borketh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so this is a little better, now that I cleaned it up a bit. You ran the black formatter without taking arguments from pyproject.toml, so it made a lot of unnecessary changes for line length that don't follow the project's settings.

This PR is still missing more than half of the commands it's meant to have, because for some reason you opted to remove unused groups instead of implementing them.

f"This wouldn't even be a valid command if you did it the right way around!",
)

@slash_command(name="add")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason why you removed these instead of... implementing them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered putting a standard parent command format, but no current commands would fall under it, and I had previously discussed with Rob not implementing those to avoid cutting the slash command auto-fill. They can be added back, but unless it's decided to add the corresponding comands they would be dead code currently.


# Leaderboard Command
async def leaderboard(self, ctx_or_interaction, ephemeral: bool) -> None:
async def leaderboard_handler(self, ctx_or_interaction, ephemeral: bool) -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why the rename

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I ran the slash version of the command, it called the "leaderboard" command, but since both were named leaderboard, it would send it twice, so I renamed it to stop that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress
Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

3 participants