diff --git a/src/helpers/messages/send_message.ts b/src/helpers/messages/send_message.ts index 39b25f0ec..d17f1efe4 100644 --- a/src/helpers/messages/send_message.ts +++ b/src/helpers/messages/send_message.ts @@ -132,8 +132,8 @@ export async function sendMessage(bot: Bot, channelId: bigint, content: string | allowed_mentions: content.allowedMentions ? { parse: content.allowedMentions?.parse, - roles: content.allowedMentions?.roles?.map(id => id.toString()), - users: content.allowedMentions?.users?.map(id => id.toString()), + roles: content.allowedMentions?.roles?.map((id) => id.toString()), + users: content.allowedMentions?.users?.map((id) => id.toString()), replied_user: content.allowedMentions?.repliedUser, } : undefined, diff --git a/src/types/messages/create_message.ts b/src/types/messages/create_message.ts index b33a325b7..ae8f1a2a2 100644 --- a/src/types/messages/create_message.ts +++ b/src/types/messages/create_message.ts @@ -21,17 +21,17 @@ export interface CreateMessage { }; /** Include to make your message a reply */ messageReference?: { - /** id of the originating message */ - messageId?: bigint; - /** - * id of the originating message's channel - * Note: `channel_id` is optional when creating a reply, but will always be present when receiving an event/response that includes this data model. - */ - channelId?: bigint; - /** id of the originating message's guild */ - guildId?: bigint; - /** When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */ - failIfNotExists: boolean; + /** id of the originating message */ + messageId?: bigint; + /** + * id of the originating message's channel + * Note: `channel_id` is optional when creating a reply, but will always be present when receiving an event/response that includes this data model. + */ + channelId?: bigint; + /** id of the originating message's guild */ + guildId?: bigint; + /** When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true */ + failIfNotExists: boolean; }; /** The contents of the file being sent */ file?: FileContent | FileContent[]; diff --git a/src/types/messages/edit_message.ts b/src/types/messages/edit_message.ts index 4c682013e..34e7f4b28 100644 --- a/src/types/messages/edit_message.ts +++ b/src/types/messages/edit_message.ts @@ -15,12 +15,14 @@ export interface EditMessage { /** The contents of the file being sent/edited */ file?: FileContent | FileContent[] | null; /** Allowed mentions for the message */ - allowedMentions?: Omit & { - /** Array of role_ids to mention (Max size of 100) */ - roles?: bigint[]; - /** Array of user_ids to mention (Max size of 100) */ - users?: bigint[]; - } | null; + allowedMentions?: + | (Omit & { + /** Array of role_ids to mention (Max size of 100) */ + roles?: bigint[]; + /** Array of user_ids to mention (Max size of 100) */ + users?: bigint[]; + }) + | null; /** Attached files to keep */ attachments?: Attachment[]; /** The components you would like to have sent in this message */