Skip to content

Conversation

Taz03
Copy link
Member

@Taz03 Taz03 commented Jan 10, 2023

Added defer reply in mod commands.

closes #712

@Taz03 Taz03 requested review from a team as code owners January 10, 2023 10:19
@Taz03 Taz03 self-assigned this Jan 10, 2023
@Taz03 Taz03 added bug Something isn't working priority: normal labels Jan 10, 2023
Copy link
Member

@Zabuzard Zabuzard left a comment

Choose a reason for hiding this comment

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

to avoid bugs, please dont give all the methods the event but the hook instead. like, everywhere u are passing around event and then do event.getHook().... but instead, just give the methods the hook directly.

that avoids people doing mistakes in those methods.

@Taz03
Copy link
Member Author

Taz03 commented Jan 10, 2023

is this required on un-action commands as well like unban, etc?

@Zabuzard
Copy link
Member

it wouldnt hurt, i guess. but its less priority, they are not used that often

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Taz03 Taz03 requested a review from Zabuzard January 11, 2023 10:29
Copy link
Contributor

@marko-radosavljevic marko-radosavljevic left a comment

Choose a reason for hiding this comment

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

Thanks ❤️

@marko-radosavljevic marko-radosavljevic merged commit 90a80c3 into develop Jan 16, 2023
@marko-radosavljevic marko-radosavljevic deleted the bugfix/mod-commands branch January 16, 2023 10:14
@Zabuzard Zabuzard mentioned this pull request Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moderation commands failing with '10062: Unknown interaction'

3 participants