Skip to content

Commit

Permalink
fix: incorrect "description_localizations" key's value build for Comm…
Browse files Browse the repository at this point in the history
…andOptionBuilder (#571)
  • Loading branch information
priyanuj-gogoi authored Oct 22, 2023
1 parent 11c026e commit 9728833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/builders/application_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class CommandOptionBuilder extends CreateBuilder<CommandOption> {
if (nameLocalizations != null) 'name_localizations': {for (final MapEntry(:key, :value) in nameLocalizations!.entries) key.identifier: value},
'description': description,
if (descriptionLocalizations != null)
'description_localizations': {for (final MapEntry(:key, :value) in nameLocalizations!.entries) key.identifier: value},
'description_localizations': {for (final MapEntry(:key, :value) in descriptionLocalizations!.entries) key.identifier: value},
if (isRequired != null) 'required': isRequired,
if (choices != null) 'choices': choices!.map((e) => e.build()).toList(),
if (options != null) 'options': options!.map((e) => e.build()).toList(),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/http/managers/channel_manager.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';

import 'package:http/http.dart' show MultipartFile;
import 'package:nyxx/nyxx.dart';
import 'package:nyxx/src/builders/builder.dart';
import 'package:nyxx/src/builders/channel/stage_instance.dart';
import 'package:nyxx/src/builders/channel/thread.dart';
Expand All @@ -24,6 +23,7 @@ import 'package:nyxx/src/models/channel/types/forum.dart';
import 'package:nyxx/src/models/channel/types/group_dm.dart';
import 'package:nyxx/src/models/channel/types/guild_announcement.dart';
import 'package:nyxx/src/models/channel/types/guild_category.dart';
import 'package:nyxx/src/models/channel/types/guild_media.dart';
import 'package:nyxx/src/models/channel/types/guild_stage.dart';
import 'package:nyxx/src/models/channel/types/guild_text.dart';
import 'package:nyxx/src/models/channel/types/guild_voice.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/src/plugin/ignore_exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class IgnoreExceptions extends NyxxPlugin {
String get name => 'IgnoreExceptions';

/// The logger used to report the errors.
@override
Logger get logger => Logger('IgnoreExceptions');

static int _clients = 0;
Expand Down

0 comments on commit 9728833

Please sign in to comment.