suicvne / DiscordSharp

A .Net API for Discord written in C#
MIT License
130 stars 33 forks source link

Question: How do I send a message to a specific channel? #55

Closed fietenoer closed 8 years ago

fietenoer commented 8 years ago

Please help me, I searched for a long time but couldn't find anything. I want to send the message without answering a message.

DuaneTheDev commented 8 years ago

List<DiscordChannel> channel = e.Server.Channels; foreach(DiscordChannel ch in channel) { if(ch.Name.Contains("channelName")) { //do stuff } }