mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: async cache
this breaks logging bot permissions to Sentry. we haven't had a need to check those recently (permissions issues were because of broken cache), so this is fine for now this should be re-added in the future though
This commit is contained in:
parent
45258d519e
commit
e7f36eb31f
24 changed files with 134 additions and 126 deletions
|
|
@ -1,7 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Myriad.Extensions;
|
||||
using Myriad.Gateway;
|
||||
using Myriad.Types;
|
||||
|
||||
using Sentry;
|
||||
|
||||
|
|
@ -42,8 +44,10 @@ namespace PluralKit.Bot
|
|||
|
||||
// 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 = _bot.PermissionsIn(evt.ChannelId);
|
||||
scope.AddBreadcrumb(perms.ToPermissionString(), "permissions");
|
||||
|
||||
// todo: re-add this
|
||||
// var perms = _bot.PermissionsIn(evt.ChannelId);
|
||||
// scope.AddBreadcrumb(perms.ToPermissionString(), "permissions");
|
||||
}
|
||||
|
||||
public void Enrich(Scope scope, Shard shard, MessageDeleteEvent evt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue