This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
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
Add null check to AllowedMentions.ToModel() (
#1865
)
pull/1942/head
d4n
GitHub
3 years ago
parent
900c1f4385
commit
3cb662ff7a
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/Discord.Net.Rest/Extensions/EntityExtensions.cs
+ 1
- 0
src/Discord.Net.Rest/Extensions/EntityExtensions.cs
View File
@@ -71,6 +71,7 @@ namespace Discord.Rest
public static API.AllowedMentions ToModel(this AllowedMentions entity)
{
if (entity == null) return null;
return new API.AllowedMentions()
{
Parse = entity.AllowedTypes?.EnumerateMentionTypes().ToArray(),
Write
Preview
Loading…
Cancel
Save