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
Fix emoto try parse (
#1941
)
pull/1942/head
Quin Lynch
GitHub
3 years ago
parent
933ea42eaa
commit
900c1f4385
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/Discord.Net.Core/Entities/Emotes/Emote.cs
+ 4
- 0
src/Discord.Net.Core/Entities/Emotes/Emote.cs
View File
@@ -74,6 +74,10 @@ namespace Discord
public static bool TryParse(string text, out Emote result)
{
result = null;
if (text == null)
return false;
if (text.Length >= 4 && text[0] == '<' && (text[1] == ':' || (text[1] == 'a' && text[2] == ':')) && text[text.Length - 1] == '>')
{
bool animated = text[1] == 'a';
Write
Preview
Loading…
Cancel
Save