Report bot permissions to Sentry
This commit is contained in:
parent
3fd89c1a45
commit
f927450352
@ -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…
Reference in New Issue
Block a user