Skip to content

Commit

Permalink
make contexts empty by default
Browse files Browse the repository at this point in the history
  • Loading branch information
MCausc78 committed Mar 18, 2024
1 parent 63ad75d commit 0ab2c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/http/managers/application_command_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ abstract class ApplicationCommandManager extends Manager<ApplicationCommand> {
hasDmPermission: raw['dm_permission'] as bool?,
isNsfw: raw['nsfw'] as bool?,
integrationTypes: (raw['integration_types'] as List).cast<int>().map(ApplicationIntegrationType.parse).toList(),
contexts: (raw['contexts'] as List).cast<int>().map(InteractionContextType.parse).toList(),
contexts: (raw['contexts'] as List? ?? []).cast<int>().map(InteractionContextType.parse).toList(),
version: Snowflake.parse(raw['version']!),
);
}
Expand Down

0 comments on commit 0ab2c72

Please sign in to comment.