-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
ChatGPT response Dismiss button #901
Conversation
Two questions:
|
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.
- Is the concurrent arraylist needed in HelpSystemHelper or would a normal one work as well?
Yes, the lambda can be invoked from multiple different threads and also concurrently.
- The event.getMember seems to be @nullable, should I care? because the filesharing feature didnt care as well
What does the javadoc (or source code) say? When will it be null? Once you checked that, is the situation a situation u want to support, or do you consider the situation a bug/impossible?
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpThreadCreatedListener.java
Show resolved
Hide resolved
It says this:
What is a guild in this context? |
Guild = Server Think about buttons in a DM only conversation. Then you have no server-context. Member = User + in a Server There is also |
Guild refers to "server" from what I know. |
Though I need a Member to check the roles. |
You are wording this wrong. It is not about ignoring it. It is about explicitly demanding that it must not be null. I.e. if it is null, you consider it as fatal error / programmer bug. And what should happen for bugs? Crash! So implicitly invoking a NPE is a deliberate choice and the correct design. Although unecessary, you can make this even more explicit by saying |
yeah sorry I was in school lol |
af21cfc
to
8437399
Compare
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java
Outdated
Show resolved
Hide resolved
d1c34c0
to
f404d3b
Compare
Kudos, SonarCloud Quality Gate passed! |
has been approved since 2 weeks. will be merged now. |
About
closes #897
Adds the dismiss button to the chatgpt response: