ApplicationCommandBuilder.message constructor

ApplicationCommandBuilder.message(
  1. {required String name,
  2. Map<Locale, String>? nameLocalizations,
  3. Flags<Permissions>? defaultMemberPermissions,
  4. bool? hasDmPermission,
  5. bool? isNsfw,
  6. List<ApplicationIntegrationType>? integrationTypes,
  7. List<InteractionContextType>? contexts}
)

Implementation

ApplicationCommandBuilder.message({
  required this.name,
  this.nameLocalizations,
  this.defaultMemberPermissions,
  this.hasDmPermission,
  this.isNsfw,
  this.integrationTypes,
  this.contexts,
})  : type = ApplicationCommandType.message,
      description = null,
      descriptionLocalizations = null,
      options = null;