コード例 #1
0
 //Generate a message wrapper for an arbitrary non-discord message
 public MessageWrapper(string content)
 {
     this.content  = content;
     this.headless = true;
     this.Channel  = new ChannelWrapper();
     this.Author   = Program.ConsoleAuthor;
 }
コード例 #2
0
 //Generate a message wrapper for an actual discord message
 public MessageWrapper(SocketMessage message)
 {
     this.message = message;
     this.Channel = new ChannelWrapper(message.Channel);
     this.Author  = new UserWrapper(message.Author);
 }