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 null ex
pull/1923/head
quin lynch
4 years ago
parent
6203c48c11
commit
31278377cd
1 changed files
with
16 additions
and
14 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-14
src/Discord.Net.Rest/API/Common/ButtonComponent.cs
+ 16
- 14
src/Discord.Net.Rest/API/Common/ButtonComponent.cs
View File
@@ -42,23 +42,25 @@ namespace Discord.API
this.Url = c.Url;
this.Disabled = c.Disabled;
if (c.Emote
is Emote e
)
if (c.Emote
!= null
)
{
this.Emote = new Emoji(
)
if (c.Emote is Emote e
)
{
Name = e.Name,
Animated = e.Animated,
Id = e.Id
,
};
}
else
{
this.Emote = new Emoji()
this.Emote = new Emoji()
{
Name = e.Name
,
Animated = e.Animated,
Id = e.Id,
};
}
else
{
Name = c.Emote.Name
};
}
this.Emote = new Emoji()
{
Name = c.Emote.Name
};
}
}
}
}
}
Write
Preview
Loading…
Cancel
Save