-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getGuildOrNull to the Kord class (#714)
Previously there was just a getGuild function that called the nullable variant below the hood, but the non-nullable variant also exists. The getGuildOrNull function was added to clearly show it returns a null, getGuild was deprecated in favor of getGuildOrNull and getGuildOrThrow was added as an alternative for getGuildOrNull that throws when the other would return null. getGuildOrThrow will be deprecated in the future when getGuild with null-returning behavior is removed and will be replaced by getGuild with throwing behavior. The functions were also KDoc'd.
- Loading branch information
1 parent
0905089
commit 4e74545
Showing
3 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters