feat: slightly more debug logs, enrich message events with extra data
This commit is contained in:
parent
c06376dfda
commit
27e77eeaed
5 changed files with 79 additions and 5 deletions
|
|
@ -42,6 +42,8 @@ public class MessageUpdateResponder(
|
|||
|
||||
public async Task<Result> RespondAsync(IMessageUpdate evt, CancellationToken ct = default)
|
||||
{
|
||||
using var _ = LogUtils.Enrich(evt);
|
||||
|
||||
// Discord only *very* recently changed message update events to have all fields,
|
||||
// so we convert the event to a MessageCreate to avoid having to unwrap every single field
|
||||
var msg = ConvertToMessageCreate(evt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue