mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
Report bot permissions to Sentry
This commit is contained in:
parent
3fd89c1a45
commit
f927450352
1 changed files with 5 additions and 0 deletions
|
|
@ -139,6 +139,11 @@ namespace PluralKit.Bot
|
||||||
{"message", evt.Message.Id.ToString()},
|
{"message", evt.Message.Id.ToString()},
|
||||||
});
|
});
|
||||||
_sentryScope.SetTag("shard", evt.Client.ShardId.ToString());
|
_sentryScope.SetTag("shard", evt.Client.ShardId.ToString());
|
||||||
|
|
||||||
|
// Also report information about the bot's permissions in the channel
|
||||||
|
// We get a lot of permission errors so this'll be useful for determining problems
|
||||||
|
var perms = evt.Channel.BotPermissions();
|
||||||
|
_sentryScope.AddBreadcrumb(perms.ToPermissionString(), "permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue