TechLifeForum
Discord.net example? - Printable Version

+- TechLifeForum (http://tech.reboot.pro)
+-- Forum: Programming and Development (http://tech.reboot.pro/forumdisplay.php?fid=15)
+--- Forum: .Net Framework Programming (http://tech.reboot.pro/forumdisplay.php?fid=17)
+--- Thread: Discord.net example? (/showthread.php?tid=5255)



Discord.net example? - iNFIDEL_ - 03-06-2018

Someone help me with Discord.net Wrapper for connecting to Discord using VB.net?
Samples I found are on C# and I dont know C#.
I tried but this doesnt log in the bot.
Code:
       Try
           dClient = New DiscordSocketClient(New DiscordSocketConfig())
           Dim token = "NDIwNjA3MTkzNTcwNjA3MTEw.DYBIsQ.UJi6g7oMxDLMb71hwdOd8KEvHqk"

           Await dClient.LoginAsync(TokenType.Bot, token)
           Await dClient.GetConnectionsAsync

       Catch ex As Exception
           MsgBox(ex.Message)
       End Try

Using the latest version of Discord.net API.