mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
fix: a couple more minor reproxy fixes
This commit is contained in:
parent
6511c04c6c
commit
51fb561841
4 changed files with 12 additions and 10 deletions
|
|
@ -86,7 +86,7 @@ public class LogChannelService
|
|||
{
|
||||
_logger.Information(
|
||||
"Does not have permission to log proxy, ignoring (channel: {ChannelId}, guild: {GuildId}, bot permissions: {BotPermissions})",
|
||||
logChannel.Id, trigger.GuildId!.Value, perms);
|
||||
logChannel.Id, guildId, perms);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -173,8 +173,9 @@ public class WebhookExecutorService
|
|||
|
||||
// We don't care about whether the sending succeeds, and we don't want to *wait* for it, so we just fork it off
|
||||
var _ = TrySendRemainingAttachments(webhook, req.Name, req.AvatarUrl, attachmentChunks, req.ThreadId);
|
||||
|
||||
return webhookMessage;
|
||||
|
||||
// for some reason discord may(?) return a null guildid here???
|
||||
return webhookMessage with { GuildId = webhookMessage.GuildId ?? req.GuildId };
|
||||
}
|
||||
|
||||
private async Task TrySendRemainingAttachments(Webhook webhook, string name, string avatarUrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue