You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

send_message.cs 343 B

123456
  1. public async Task SendMessageToChannel(ulong ChannelId)
  2. {
  3. var channel = _client.GetChannel(ChannelId) as ISocketMessageChannel;
  4. await channel?.SendMessageAsync("aaaaaaaaahhh!!!")
  5. /* ^ This question mark is used to indicate that 'channel' may sometimes be null, and in cases that it is null, we will do nothing here. */
  6. }