Skip to content

Refactor interactions #47

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

Merged
merged 14 commits into from
Mar 3, 2025
Merged

Refactor interactions #47

merged 14 commits into from
Mar 3, 2025

Conversation

myrkvi
Copy link
Member

@myrkvi myrkvi commented Feb 19, 2025

Major refactoring regarding interactions / application commands

This PR puts previous commands and components in their own packages, under the infractions package. This results in interactions being more organised by their commands and related features, as well as moving registering to the interaction router within the package of each interaction package.

There has also been some light refactoring for code reuse, but also splitting up into multiple files, so that large commands such as the admin one has separate files for each sub-command, as it relates to configuration for various features.

@myrkvi myrkvi force-pushed the chore/refactor-interactions branch from 2a59f72 to f4f46e6 Compare February 19, 2025 21:17
@myrkvi myrkvi marked this pull request as ready for review February 21, 2025 21:41
@myrkvi myrkvi force-pushed the chore/refactor-interactions branch from 19f24a1 to ab0e1f9 Compare February 24, 2025 20:29

return e.CreateMessage(
discord.NewMessageCreateBuilder().
SetContent(message).
Copy link
Member

Choose a reason for hiding this comment

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

Should use the same builder here

@myrkvi myrkvi force-pushed the chore/refactor-interactions branch from ab0e1f9 to b01d6b6 Compare March 3, 2025 20:25
Copy link
Member

@adalinesimonian adalinesimonian left a comment

Choose a reason for hiding this comment

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

Godt gjort! Takk for denne refaktoriseringa; kodebasen er langt betre organisert no. Klart for å verta squasha og samanslått.

@myrkvi
Copy link
Member Author

myrkvi commented Mar 3, 2025

Godt gjort! Takk for denne refaktoriseringa; kodebasen er langt betre organisert no. Klart for å verta squasha og samanslått.

Tusen takk for at du tok deg tid til å se gjennom den store PR-en min :)

@myrkvi myrkvi merged commit 42c40a2 into main Mar 3, 2025
3 checks passed
@myrkvi myrkvi deleted the chore/refactor-interactions branch March 3, 2025 21:18
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