Пример #1
0
        public static async Task <IReadOnlyCollection <RestGuildCommand> > BulkOverwriteGuildApplicationCommandAsync(BaseDiscordClient client, ulong guildId,
                                                                                                                     ApplicationCommandProperties[] properties, RequestOptions options = null)
        {
            var models = await InteractionHelper.BulkOverwriteGuildCommandsAsync(client, guildId, properties, options);

            return(models.Select(x => RestGuildCommand.Create(client, x, guildId)).ToImmutableArray());
        }