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 a missing null-conditional in CommandContext#ctor
Prevents an NRE when creating a CommandContext from a message in an IDMChannel
pull/322/head
Christopher F
8 years ago
parent
c813a049ff
commit
11f4dc0d10
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Discord.Net.Commands/CommandContext.cs
+ 1
- 1
src/Discord.Net.Commands/CommandContext.cs
View File
@@ -21,7 +21,7 @@
public CommandContext(IDiscordClient client, IUserMessage msg)
{
Client = client;
Guild = (msg.Channel as IGuildChannel).Guild;
Guild = (msg.Channel as IGuildChannel)
?
.Guild;
Channel = msg.Channel;
User = msg.Author;
Message = msg;
Write
Preview
Loading…
Cancel
Save