Hi,
I have the following code. I'm having issues in figuring out how to send a SocketMessage to a given channel. How do I do that? In case of it matters, I'm using .NET Framework 4.8 due to compatibility reasons.
Thanks in advance!
private static async Task MessageCreate()
{
SocketTextChannel channel = _client.GetChannel(1234567890) as SocketTextChannel;
string messageString = "Hello world!";
// Send a message 'newMessage' of type SocketMessage containing string 'messageString' to channel 'channel' here
while (true)
{
await MessageUpdate(newMessage);
}
}