mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
Don't attempt to send log messages if the bot doesn't have permissions
This commit is contained in:
parent
493f7b12e5
commit
8d3be79d33
4 changed files with 15 additions and 11 deletions
|
|
@ -128,7 +128,7 @@ namespace PluralKit.Bot {
|
|||
foreach (var channel in await guild.GetTextChannelsAsync())
|
||||
{
|
||||
// TODO: do we need to hide channels here to prevent info-leaking?
|
||||
var perms = await channel.PermissionsIn();
|
||||
var perms = channel.PermissionsIn();
|
||||
|
||||
// We use a bitfield so we can set individual permission bits in the loop
|
||||
ulong missingPermissionField = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue