Skip to content

Commit

Permalink
Update ApplicationCommandsExtension.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 4, 2024
1 parent 5c4fc03 commit fd5e570
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ public event AsyncEventHandler<ApplicationCommandsExtension, GlobalApplicationCo
/// </summary>
internal async Task UpdateAsync()
{
this.Client.Logger.Log(ApplicationCommandsLogLevel, "Request to register commands on shard {shard}", this.Client.ShardId);
this.Client.Logger.Log(LogLevel.Information, "Request to register commands on shard {shard}", this.Client.ShardId);

if (this.ShardStartupFinished)
{
this.Client.Logger.Log(ApplicationCommandsLogLevel, "Shard {shard} already setup, skipping", this.Client.ShardId);
this.Client.Logger.Log(LogLevel.Information, "Shard {shard} already setup, skipping", this.Client.ShardId);
return;
}

Expand Down Expand Up @@ -575,7 +575,7 @@ internal async Task UpdateAsync()

StartupFinished = FinishedShardCount == ShardCount;

this.Client.Logger.Log(ApplicationCommandsLogLevel, "Application command setup finished for shard {ShardId}, enabling receiving", this.Client.ShardId);
this.Client.Logger.Log(LogLevel.Information, "Application command setup finished for shard {ShardId}, enabling receiving", this.Client.ShardId);
await this._applicationCommandsModuleStartupFinished.InvokeAsync(this, new(Configuration?.ServiceProvider)
{
RegisteredGlobalCommands = GlobalCommandsInternal,
Expand All @@ -593,7 +593,7 @@ internal async Task UpdateAsync()
/// <param name="guildId">The optional guild id.</param>
private async Task RegisterCommands(List<ApplicationCommandsModuleConfiguration> types, ulong? guildId)
{
this.Client.Logger.Log(ApplicationCommandsLogLevel, "Registering commands on shard {shard}", this.Client.ShardId);
this.Client.Logger.Log(LogLevel.Information, "Registering commands on shard {shard}", this.Client.ShardId);
//Initialize empty lists to be added to the global ones at the end
var commandMethods = new List<CommandMethod>();
var groupCommands = new List<GroupCommand>();
Expand Down

0 comments on commit fd5e570

Please sign in to comment.