Ejemplo n.º 1
0
        public static async Task <IReadOnlyCollection <RestGlobalCommand> > BulkOverwriteGlobalApplicationCommandAsync(BaseDiscordClient client, ApplicationCommandProperties[] properties,
                                                                                                                       RequestOptions options = null)
        {
            var models = await InteractionHelper.BulkOverwriteGlobalCommandsAsync(client, properties, options);

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