Revert "Revert "fix: catch some discord bot errors""

This reverts commit 5410981beb.
This commit is contained in:
goat 2020-07-20 18:34:22 +02:00
parent 5410981beb
commit fe76d1e31a
3 changed files with 31 additions and 17 deletions

View file

@ -170,7 +170,13 @@ namespace Dalamud.Game {
var messageCopy = message;
var senderCopy = sender;
Task.Run(() => this.dalamud.BotManager.ProcessChatMessage(type, messageCopy, senderCopy));
Task.Run(async () => {
try {
await this.dalamud.BotManager.ProcessChatMessage(type, messageCopy, senderCopy);
} catch (Exception ex) {
Log.Error(ex, "Could not process discord bot message.");
}
});
// Handle all of this with SeString some day
/*