From 7f244975b029d633a1d6d1d21af3a4c0da5ed644 Mon Sep 17 00:00:00 2001 From: Cenngo Date: Tue, 8 Mar 2022 15:14:30 +0300 Subject: [PATCH] add inline docs to GenerateCustomIdStringAsync method --- src/Discord.Net.Interactions/InteractionService.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Interactions/InteractionService.cs b/src/Discord.Net.Interactions/InteractionService.cs index 0f023d1dc..927e39735 100644 --- a/src/Discord.Net.Interactions/InteractionService.cs +++ b/src/Discord.Net.Interactions/InteractionService.cs @@ -910,13 +910,22 @@ namespace Discord.Interactions /// /// Type of the object to be serialized. /// Object to be serialized. - /// Services that will be passed on to the TypeReader. + /// Services that will be passed on to the . /// /// A task representing the conversion process. The task result contains the result of the conversion. /// public Task SerializeValueAsync(T obj, IServiceProvider services) => _typeReaderMap.Get(typeof(T), services).SerializeAsync(obj, services); + /// + /// Serialize and format multiple objects into a Custom Id string. + /// + /// A composite format string. + /// >Services that will be passed on to the s. + /// Objects to be serialized. + /// + /// A task representing the conversion process. The task result contains the result of the conversion. + /// public async Task GenerateCustomIdStringAsync(string format, IServiceProvider services, params object[] args) { var serializedValues = new string[args.Length]; @@ -925,7 +934,7 @@ namespace Discord.Interactions { var arg = args[i]; var typeReader = _typeReaderMap.Get(arg.GetType(), null); - var result = await typeReader.SerializeAsync(arg, services); + var result = await typeReader.SerializeAsync(arg, services).ConfigureAwait(false); serializedValues[i] = result; }