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 Channel.IsPrivate comment to Message.Member error
pull/6/head
RogueException
9 years ago
parent
e730134b74
commit
d27e74a9ae
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
src/Discord.Net/Models/Message.cs
+ 2
- 2
src/Discord.Net/Models/Message.cs
View File
@@ -157,10 +157,10 @@ namespace Discord
{
get
{
if (
ServerId != null
)
if (
!Channel.IsPrivate
)
return _client.Members[UserId, ServerId];
else
throw new InvalidOperationException("Unable to access Member in a private channel. Use User instead.");
throw new InvalidOperationException("Unable to access Member in a private channel. Use User instead
or check for Channel.IsPrivate
.");
}
}
Write
Preview
Loading…
Cancel
Save