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
Added a simpler CommandContext constructor
pull/312/head
RogueException
8 years ago
parent
c497f95d35
commit
890318ecfc
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
src/Discord.Net.Commands/CommandContext.cs
+ 8
- 0
src/Discord.Net.Commands/CommandContext.cs
View File
@@ -18,5 +18,13 @@
User = user;
Message = msg;
}
public CommandContext(IDiscordClient client, IUserMessage msg)
{
Client = client;
Guild = (msg.Channel as IGuildChannel).Guild;
Channel = msg.Channel;
User = msg.Author;
Message = msg;
}
}
}
Write
Preview
Loading…
Cancel
Save