mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-18 01:07:22 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
b7cadf148d
commit
29f215eafe
@@ -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,
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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<AllowedMentions, "users" | "roles"> & {
|
||||
/** 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<AllowedMentions, "users" | "roles"> & {
|
||||
/** 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 */
|
||||
|
||||
Reference in New Issue
Block a user