change: prettier code

This commit is contained in:
Skillz4Killz
2021-11-09 18:43:44 +00:00
committed by GitHub Action
parent b7cadf148d
commit 29f215eafe
3 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -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,
+11 -11
View File
@@ -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[];
+8 -6
View File
@@ -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 */