From 75b10e9195940059dacc6b497d8ffddfbb4fbf8b Mon Sep 17 00:00:00 2001 From: quin lynch Date: Fri, 28 May 2021 10:46:13 -0300 Subject: [PATCH] Fix incorrect URL checks --- .../Interactions/Message Components/ComponentBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs index 532e0b2e5..a7da0d936 100644 --- a/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs @@ -422,7 +422,8 @@ namespace Discord if (this.Style == ButtonStyle.Link && !string.IsNullOrEmpty(this.CustomId)) this.CustomId = null; - else if (!string.IsNullOrEmpty(this.Url)) + + else if (this.Style != ButtonStyle.Link && !string.IsNullOrEmpty(this.Url)) // Thanks 𝑴𝒓π‘ͺπ’‚π’Œπ’†π‘Ίπ’π’‚π’šπ’†π’“ :D this.Url = null; return new ButtonComponent(this.Style, this.Label, this.Emote, this.CustomId, this.Url, this.Disabled);