mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Merge branch 'main' of github.com:discordeno/discordeno
This commit is contained in:
@@ -19,6 +19,7 @@ export function transformAutoModerationActionExecution(bot: Bot, payload: Discor
|
|||||||
type: payload.action.type,
|
type: payload.action.type,
|
||||||
metadata: {
|
metadata: {
|
||||||
durationSeconds: payload.action.metadata.duration_seconds,
|
durationSeconds: payload.action.metadata.duration_seconds,
|
||||||
|
customMessage: payload.action.metadata.custom_message,
|
||||||
channelId: payload.action.metadata.channel_id ? bot.transformers.snowflake(payload.action.metadata.channel_id) : undefined,
|
channelId: payload.action.metadata.channel_id ? bot.transformers.snowflake(payload.action.metadata.channel_id) : undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export function transformAutoModerationRule(bot: Bot, payload: DiscordAutoModera
|
|||||||
metadata: action.metadata
|
metadata: action.metadata
|
||||||
? {
|
? {
|
||||||
channelId: action.metadata.channel_id ? bot.transformers.snowflake(action.metadata.channel_id) : undefined,
|
channelId: action.metadata.channel_id ? bot.transformers.snowflake(action.metadata.channel_id) : undefined,
|
||||||
|
customMessage: action.metadata.custom_message,
|
||||||
durationSeconds: action.metadata.duration_seconds,
|
durationSeconds: action.metadata.duration_seconds,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|||||||
@@ -329,6 +329,15 @@ export const MessageTypes = {
|
|||||||
THREAD_STARTER_MESSAGE: 21,
|
THREAD_STARTER_MESSAGE: 21,
|
||||||
GUILD_INVITE_REMINDER: 22,
|
GUILD_INVITE_REMINDER: 22,
|
||||||
CONTEXT_MENU_COMMAND: 23,
|
CONTEXT_MENU_COMMAND: 23,
|
||||||
|
AUTO_MODERATION_ACTION: 24,
|
||||||
|
ROLE_SUBSCRIPTION_PURCHASE: 25,
|
||||||
|
INTERACTION_PREMIUM_UPSELL: 26,
|
||||||
|
STAGE_START: 27,
|
||||||
|
STAGE_END: 28,
|
||||||
|
STAGE_SPEAKER: 29,
|
||||||
|
|
||||||
|
STAGE_TOPIC: 31,
|
||||||
|
GUILD_APPLICATION_PREMIUM_SUBSCRIPTION: 32,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const PermissionOverwriteTypes = {
|
export const PermissionOverwriteTypes = {
|
||||||
|
|||||||
@@ -1443,6 +1443,8 @@ export enum AutoModerationActionType {
|
|||||||
export interface DiscordAutoModerationActionMetadata {
|
export interface DiscordAutoModerationActionMetadata {
|
||||||
/** The id of channel to which user content should be logged. Only in ActionType.SendAlertMessage */
|
/** The id of channel to which user content should be logged. Only in ActionType.SendAlertMessage */
|
||||||
channel_id?: string
|
channel_id?: string
|
||||||
|
/** Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters. Only supported for AutoModerationActionType.BlockMessage */
|
||||||
|
custom_message?: string
|
||||||
/** Timeout duration in seconds maximum of 2419200 seconds (4 weeks). Only supported for TriggerType.Keyword && Only in ActionType.Timeout */
|
/** Timeout duration in seconds maximum of 2419200 seconds (4 weeks). Only supported for TriggerType.Keyword && Only in ActionType.Timeout */
|
||||||
duration_seconds?: number
|
duration_seconds?: number
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1022,7 +1022,7 @@ export interface CreateGuildStickerOptions extends WithReason {
|
|||||||
description: string
|
description: string
|
||||||
/** Autocomplete/suggestion tags for the sticker (max 200 characters) */
|
/** Autocomplete/suggestion tags for the sticker (max 200 characters) */
|
||||||
tags: string
|
tags: string
|
||||||
/** The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB */
|
/** The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 512 KB */
|
||||||
file: FileContent
|
file: FileContent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -339,6 +339,13 @@ export enum MessageTypes {
|
|||||||
GuildInviteReminder,
|
GuildInviteReminder,
|
||||||
ContextMenuCommand,
|
ContextMenuCommand,
|
||||||
AutoModerationAction,
|
AutoModerationAction,
|
||||||
|
RoleSubscriptionPurchase,
|
||||||
|
InteractionPremiumUpsell,
|
||||||
|
StageStart,
|
||||||
|
StageEnd,
|
||||||
|
StageSpeaker,
|
||||||
|
StageTopic = 31,
|
||||||
|
GuildApplicationPremiumSubscription,
|
||||||
}
|
}
|
||||||
|
|
||||||
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-types */
|
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-types */
|
||||||
|
|||||||
Reference in New Issue
Block a user