🐛 fix Message embed type
This commit is contained in:
		
							parent
							
								
									5c46ac04d0
								
							
						
					
					
						commit
						7f848b2c24
					
				| @ -131,7 +131,7 @@ export interface Attachment { | ||||
| 
 | ||||
| export interface Embed { | ||||
| 	title?: string; //title of embed
 | ||||
| 	type?: string; // type of embed (always "rich" for webhook embeds)
 | ||||
| 	type?: EmbedType; // type of embed (always "rich" for webhook embeds)
 | ||||
| 	description?: string; // description of embed
 | ||||
| 	url?: string; // url of embed
 | ||||
| 	timestamp?: Date; // timestamp of embed content
 | ||||
| @ -161,6 +161,15 @@ export interface Embed { | ||||
| 	}[]; | ||||
| } | ||||
| 
 | ||||
| export enum EmbedType { | ||||
| 	rich = "rich", | ||||
| 	image = "image", | ||||
| 	video = "video", | ||||
| 	gifv = "gifv", | ||||
| 	article = "article", | ||||
| 	link = "link", | ||||
| } | ||||
| 
 | ||||
| export interface EmbedImage { | ||||
| 	url?: string; | ||||
| 	proxy_url?: string; | ||||
| @ -217,7 +226,7 @@ const Reaction = { | ||||
| 
 | ||||
| export const Embed = { | ||||
| 	title: String, //title of embed
 | ||||
| 	type: String, // type of embed (always "rich" for webhook embeds)
 | ||||
| 	type: { type: String }, // type of embed (always "rich" for webhook embeds)
 | ||||
| 	description: String, // description of embed
 | ||||
| 	url: String, // url of embed
 | ||||
| 	timestamp: Date, // timestamp of embed content
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy