This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix incorrect URL checks
pull/1923/head
quin lynch
4 years ago
parent
ad611dcafa
commit
75b10e9195
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs
+ 2
- 1
src/Discord.Net.Core/Entities/Interactions/Message Components/ComponentBuilder.cs
View File
@@ -422,7 +422,8 @@ namespace Discord
if (this.Style == ButtonStyle.Link && !string.IsNullOrEmpty(this.CustomId))
if (this.Style == ButtonStyle.Link && !string.IsNullOrEmpty(this.CustomId))
this.CustomId = null;
this.CustomId = null;
else if (!string.IsNullOrEmpty(this.Url))
else if (this.Style != ButtonStyle.Link && !string.IsNullOrEmpty(this.Url)) // Thanks 𝑴𝒓𝑪𝒂𝒌𝒆𝑺𝒍𝒂𝒚𝒆𝒓 :D
this.Url = null;
this.Url = null;
return new ButtonComponent(this.Style, this.Label, this.Emote, this.CustomId, this.Url, this.Disabled);
return new ButtonComponent(this.Style, this.Label, this.Emote, this.CustomId, this.Url, this.Disabled);
Write
Preview
Loading…
Cancel
Save