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 GitHub
parent 2e3bc69602
commit 53ba3b6016
2 changed files with 7 additions and 0 deletions

View File

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

View File

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