We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec6b77 commit 55a6397Copy full SHA for 55a6397
lib/src/checks/permissions.dart
@@ -88,7 +88,10 @@ class PermissionsCheck extends Check {
88
if (overrides.permissions.isEmpty) {
89
overrides =
90
(await context.client.guilds[context.guild!.id].commands.listPermissions())
91
- .singleWhere((overrides) => overrides.command == null);
+ .singleWhere(
92
+ (overrides) => overrides.command == null,
93
+ orElse: () => overrides,
94
+ );
95
}
96
97
bool? def;
0 commit comments