fix BulkOverwriteCommands NRE (#2444)
This commit is contained in:
@@ -150,8 +150,6 @@ namespace Discord.Rest
|
|||||||
DmPermission = arg.IsDMEnabled.ToNullable()
|
DmPermission = arg.IsDMEnabled.ToNullable()
|
||||||
};
|
};
|
||||||
|
|
||||||
Console.WriteLine("Locales:" + string.Join(",", arg.NameLocalizations.Keys));
|
|
||||||
|
|
||||||
if (arg is SlashCommandProperties slashProps)
|
if (arg is SlashCommandProperties slashProps)
|
||||||
{
|
{
|
||||||
Preconditions.NotNullOrEmpty(slashProps.Description, nameof(slashProps.Description));
|
Preconditions.NotNullOrEmpty(slashProps.Description, nameof(slashProps.Description));
|
||||||
|
|||||||
Reference in New Issue
Block a user