-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
support for installation and interaction contexts #86
base: master
Are you sure you want to change the base?
Conversation
} else if (this.guildOnly) { | ||
// remove bot dm from contexts | ||
contexts.remove(InteractionContextType.BOT_DM); | ||
} else if (!this.guildOnly) { |
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.
Pretty sure a simple } else {
should work here given you already check for null and if it is true. And since it's a boolean can there only be false be left by the logic.
} else if (this.guildOnly) { | ||
// remove bot dm from contexts | ||
contexts.remove(InteractionContextType.BOT_DM); | ||
} else if (!this.guildOnly) { |
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.
See previous comment.
} else if (this.guildOnly) { | ||
// remove bot dm from contexts | ||
contexts.remove(InteractionContextType.BOT_DM); | ||
} else if (!this.guildOnly) { |
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.
See first comment.
} else if (this.guildOnly) { | ||
// remove bot dm from contexts | ||
contexts.remove(InteractionContextType.BOT_DM); | ||
} else if (!this.guildOnly) { |
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.
blablabla first comment.
Until this is deployed to JDA, this will be on a snapshot release: |
This is the most awful way of migrating guildOnly to the new installation contexts, but, it works. Accepting feedback on how this could be better!
Waiting for discord-jda/JDA#2633 to be merged before this is open for review.