feat(BaseInteraction): add attachmentSizeLimit (#10830)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-04-10 21:41:52 +01:00
committed by Jiralite
parent d0a535ea6a
commit 7e21a9474e
2 changed files with 7 additions and 0 deletions

View File

@@ -122,6 +122,12 @@ class BaseInteraction extends Base {
* @type {?InteractionContextType}
*/
this.context = data.context ?? null;
/**
* Attachment size limit in bytes
* @type {number}
*/
this.attachmentSizeLimit = data.attachment_size_limit;
}
/**

View File

@@ -2102,6 +2102,7 @@ export class BaseInteraction<Cached extends CacheType = CacheType> extends Base
public locale: Locale;
public guildLocale: CacheTypeReducer<Cached, Locale>;
public entitlements: Collection<Snowflake, Entitlement>;
public attachmentSizeLimit: number;
public inGuild(): this is BaseInteraction<'raw' | 'cached'>;
public inCachedGuild(): this is BaseInteraction<'cached'>;
public inRawGuild(): this is BaseInteraction<'raw'>;