You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imports Discord
Module Module1
Dim Client As New DiscordClient
Sub Main()
Client.Connect("Username","Password")
Client.SetGame("Anything")
Console.ReadKey()
End Sub
End Module
An unhandled exception of type 'System.NullReferenceException' occurred in Discord.Net.dll
Additional information: Object reference not set to an instance of an object.
Line 317 of DiscordClient.cs
The text was updated successfully, but these errors were encountered:
Client.SetGame does not return a value, so Visual Studio will not let me await it. It doesn't matter anyway though - if I move Client.SetGame("Text") to my MessageRecieved Event Handler, it still doesn't work, even though at that point we are definitely connected.
An unhandled exception of type 'System.NullReferenceException' occurred in Discord.Net.dll
Additional information: Object reference not set to an instance of an object.
Line 317 of DiscordClient.cs
The text was updated successfully, but these errors were encountered: