Skip to content

Commit 94eeaad

Browse files
committed
Ensure discord is not ready when disconnecting
1 parent bb50071 commit 94eeaad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SEDiscordBridge/DiscordBridge.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public void Stopdiscord()
4141
}
4242

4343
private async Task DisconnectDiscord()
44-
{
44+
{
45+
Ready = false;
4546
await discord.DisconnectAsync();
4647
}
4748

@@ -106,7 +107,7 @@ public void SendStatusMessage(string user, string msg)
106107

107108
//mention
108109
//msg = MentionNameToID(msg, chann);
109-
discord.SendMessageAsync(chann, msg.Replace("{p}", user););
110+
discord.SendMessageAsync(chann, msg.Replace("{p}", user));
110111
}
111112
}
112113

0 commit comments

Comments
 (0)