mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Fix forgot to update transformer
This commit is contained in:
@@ -14,6 +14,7 @@ export async function editMember(bot: Bot, guildId: bigint, memberId: bigint, op
|
||||
mute: options.mute,
|
||||
deaf: options.deaf,
|
||||
channel_id: options.channelId,
|
||||
communication_disabled_until: options.communicationDisabledUntil,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ export function transformMember(
|
||||
cachedAt: Date.now(),
|
||||
avatar: payload.avatar ? bot.utils.iconHashToBigInt(payload.avatar) : undefined,
|
||||
permissions: payload.permissions ? bot.transformers.snowflake(payload.permissions) : undefined,
|
||||
communicationDisabledUntil: payload.communication_disabled_until,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -86,4 +87,6 @@ export interface DiscordenoMember {
|
||||
avatar?: bigint;
|
||||
/** The permissions this member has in the guild. Only present on interaction events. */
|
||||
permissions?: bigint;
|
||||
/** when the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to null to remove timeout. Requires the `MODERATE_MEMBERS` permission */
|
||||
communicationDisabledUntil?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user