Skip to content

Commit

Permalink
Update command_interaction.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
PandaGuerrier authored Jun 21, 2023
1 parent 147b000 commit b167f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/api/interactions/command_interaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CommandInteraction extends Interaction with Client {
/// ```dart
/// Channel? channel = interaction.getChannel('option_name');
/// ```
PartialTextChannel? getChannel(String optionName) {
T? getChannel<T extends PartialTextChannel>(String optionName) {
return guild?.channels.cache.get(params[optionName]);
}

Expand Down

0 comments on commit b167f1f

Please sign in to comment.