diff --git a/Hosting/NetCord.Hosting.Services/ApplicationCommands/ApplicationCommandServiceHostExtensions.cs b/Hosting/NetCord.Hosting.Services/ApplicationCommands/ApplicationCommandServiceHostExtensions.cs index fb3ee3ac..ca3a5e61 100644 --- a/Hosting/NetCord.Hosting.Services/ApplicationCommands/ApplicationCommandServiceHostExtensions.cs +++ b/Hosting/NetCord.Hosting.Services/ApplicationCommands/ApplicationCommandServiceHostExtensions.cs @@ -59,7 +59,16 @@ public static IHost AddSlashCommand(this IHost host, ulong? guildId = null) { var service = ServiceProviderServiceHelper.GetSingle(host.Services); - service.AddSlashCommand(name, description, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddSlashCommand(name, + description, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } @@ -75,7 +84,15 @@ public static IHost AddUserCommand(this IHost host, ulong? guildId = null) { var service = ServiceProviderServiceHelper.GetSingle(host.Services); - service.AddUserCommand(name, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddUserCommand(name, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } @@ -91,7 +108,15 @@ public static IHost AddMessageCommand(this IHost host, ulong? guildId = null) { var service = ServiceProviderServiceHelper.GetSingle(host.Services); - service.AddMessageCommand(name, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddMessageCommand(name, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } @@ -108,7 +133,16 @@ public static IHost AddSlashCommand(this IHost host, ulong? guildId = null) where TContext : IApplicationCommandContext { var service = host.Services.GetRequiredService>(); - service.AddSlashCommand(name, description, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddSlashCommand(name, + description, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } @@ -124,7 +158,15 @@ public static IHost AddUserCommand(this IHost host, ulong? guildId = null) where TContext : IApplicationCommandContext { var service = host.Services.GetRequiredService>(); - service.AddUserCommand(name, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddUserCommand(name, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } @@ -140,7 +182,15 @@ public static IHost AddMessageCommand(this IHost host, ulong? guildId = null) where TContext : IApplicationCommandContext { var service = host.Services.GetRequiredService>(); - service.AddMessageCommand(name, handler, defaultGuildUserPermissions, dMPermission, defaultPermission, integrationTypes, contexts, nsfw, guildId); + service.AddMessageCommand(name, + handler, + defaultGuildUserPermissions, + dMPermission, + defaultPermission, + integrationTypes, + contexts, + nsfw, + guildId); return host; } }