mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26:08 +00:00
fix: remove parsed avatar hashes from webhooks
This commit is contained in:
parent
93f40d22e9
commit
d1766cd862
@ -15,7 +15,7 @@ import type {
|
|||||||
import type { Channel } from './channels';
|
import type { Channel } from './channels';
|
||||||
import type { Component } from './components';
|
import type { Component } from './components';
|
||||||
import type { MessageInteraction } from './interactions';
|
import type { MessageInteraction } from './interactions';
|
||||||
import { MessageFlags, Util } from '../utils/util';
|
import { MessageFlags } from '../utils/util';
|
||||||
import { Snowflake } from '../snowflakes';
|
import { Snowflake } from '../snowflakes';
|
||||||
import { ChannelFactory, ThreadChannel } from './channels';
|
import { ChannelFactory, ThreadChannel } from './channels';
|
||||||
import { User } from './user';
|
import { User } from './user';
|
||||||
@ -115,7 +115,7 @@ export interface WebhookAuthor {
|
|||||||
id: string;
|
id: string;
|
||||||
username: string;
|
username: string;
|
||||||
discriminator: string;
|
discriminator: string;
|
||||||
avatar?: bigint;
|
avatar?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -187,9 +187,7 @@ export class Message implements Model {
|
|||||||
id: data.webhook_id!,
|
id: data.webhook_id!,
|
||||||
username: data.author.username,
|
username: data.author.username,
|
||||||
discriminator: data.author.discriminator,
|
discriminator: data.author.discriminator,
|
||||||
avatar: data.author.avatar
|
avatar: data.author.avatar ? data.author.avatar : undefined,
|
||||||
? Util.iconHashToBigInt(data.author.avatar)
|
|
||||||
: undefined,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user