diff --git a/Instagram Reels Bot/Modules/SlashCommands.cs b/Instagram Reels Bot/Modules/SlashCommands.cs index 3cf6a4f..8d0b890 100644 --- a/Instagram Reels Bot/Modules/SlashCommands.cs +++ b/Instagram Reels Bot/Modules/SlashCommands.cs @@ -64,10 +64,10 @@ public SlashCommands(CommandHandler handler, Subscriptions subs, IConfiguration } //Create embed builder: - IGEmbedBuilder embed = new IGEmbedBuilder(response, Context.User.Username, HasSpoilers); + IGEmbedBuilder embed = (!string.IsNullOrEmpty(_config["DisableTitle"]) && _config["DisableTitle"].ToLower() == "true") ? (new IGEmbedBuilder(response)) : (new IGEmbedBuilder(response, Context.User.Username)); - //Create component builder: - IGComponentBuilder component = new IGComponentBuilder(response, Context.User.Id, _config); + //Create component builder: + IGComponentBuilder component = new IGComponentBuilder(response, Context.User.Id, _config); if (response.isVideo) { @@ -150,8 +150,8 @@ public async Task Profile([Summary("username", "The username of the Instagram ac return; } - IGEmbedBuilder embed = new IGEmbedBuilder(response, Context.User.Username); - IGComponentBuilder component = new IGComponentBuilder(response, Context.User.Id, _config); + IGEmbedBuilder embed = (!string.IsNullOrEmpty(_config["DisableTitle"]) && _config["DisableTitle"].ToLower() == "true") ? (new IGEmbedBuilder(response)) : (new IGEmbedBuilder(response, Context.User.Username)); + IGComponentBuilder component = new IGComponentBuilder(response, Context.User.Id, _config); await FollowupAsync(embed: embed.AutoSelector(), allowedMentions: AllowedMentions.None, components: component.AutoSelector()); }