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
ToString on types of IEmote should return a chat formatted string
tags/1.0
Christopher F
8 years ago
parent
ea685b4f23
commit
1d612f15c8
3 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net.Core/Entities/Emotes/Emoji.cs
+1
-1
src/Discord.Net.Core/Entities/Emotes/Emote.cs
+1
-1
src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs
+ 2
- 0
src/Discord.Net.Core/Entities/Emotes/Emoji.cs
View File
@@ -19,5 +19,7 @@
/// The unicode representation of this emote.
/// </summary>
public string Name { get; }
public override string ToString() => Name;
}
}
+ 1
- 1
src/Discord.Net.Core/Entities/Emotes/Emote.cs
View File
@@ -58,6 +58,6 @@ namespace Discord
}
private string DebuggerDisplay => $"{Name} ({Id})";
public override string ToString() => Name;
public override string ToString() =>
$"<:{
Name
}:{Id}>"
;
}
}
+ 1
- 1
src/Discord.Net.Core/Entities/Emotes/GuildEmote.cs
View File
@@ -20,7 +20,7 @@ namespace Discord
RoleIds = roleIds;
}
public override string ToString() => Name;
private string DebuggerDisplay => $"{Name} ({Id})";
public override string ToString() => $"<:{Name}:{Id}>";
}
}
Write
Preview
Loading…
Cancel
Save