empty messages check + allowed mentions

This commit is contained in:
Flam3rboy
2021-06-23 19:23:41 +02:00
parent 295fbabf0d
commit 2be07d2f73
5 changed files with 32 additions and 10 deletions
+12 -2
View File
@@ -43,7 +43,12 @@ export const MessageCreateSchema = {
25
)
},
$allowed_mentions: [],
$allowed_mentions: {
$parse: [String],
$roles: [String],
$users: [String],
$replied_user: Boolean
},
$message_reference: {
message_id: String,
channel_id: String,
@@ -60,7 +65,12 @@ export interface MessageCreateSchema {
tts?: boolean;
flags?: bigint;
embed?: Embed & { timestamp?: string };
allowed_mentions?: [];
allowed_mentions?: {
parse?: string[];
roles?: string[];
users?: string[];
replied_user?: boolean;
};
message_reference?: {
message_id: string;
channel_id: string;