Merge pull request #1952 from lts20050703/gh-1904

discord-api-docs: Clarification on channel icons
This commit is contained in:
Skillz4Killz
2022-02-01 12:10:09 -05:00
committed by GitHub
2 changed files with 0 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ export function transformChannel(
userLimit: payload.channel.user_limit,
rateLimitPerUser: payload.channel.rate_limit_per_user,
recipients: payload.channel.recipients?.map((r) => bot.transformers.user(bot, r)),
icon: payload.channel.icon ? bot.utils.iconHashToBigInt(payload.channel.icon) : undefined,
rtcRegion: payload.channel.rtc_region,
videoQualityMode: payload.channel.video_quality_mode,
guildId: payload.guildId || (payload.channel.guild_id ? bot.transformers.snowflake(payload.channel.guild_id) : 0n),

View File

@@ -33,8 +33,6 @@ export interface Channel {
rateLimitPerUser?: number;
/** The recipients of the DM */
recipients?: User[];
/** Icon hash */
icon?: string | null;
/** Id of the creator of the group DM or thread */
ownerId?: string;
/** Application id of the group DM creator if it is bot-created */