Remove other mentions in Message
We already have MessageMentions class, which handles all mentions.
This commit is contained in:
		
							parent
							
								
									8a0882cd4d
								
							
						
					
					
						commit
						c3d025529d
					
				
					 1 changed files with 0 additions and 9 deletions
				
			
		|  | @ -32,10 +32,7 @@ export class Message extends Base { | ||||||
|   timestamp: string |   timestamp: string | ||||||
|   editedTimestamp?: string |   editedTimestamp?: string | ||||||
|   tts: boolean |   tts: boolean | ||||||
|   mentionEveryone: boolean |  | ||||||
|   mentions: MessageMentions |   mentions: MessageMentions | ||||||
|   mentionRoles: string[] |  | ||||||
|   mentionChannels?: ChannelMention[] |  | ||||||
|   attachments: Attachment[] |   attachments: Attachment[] | ||||||
|   embeds: Embed[] |   embeds: Embed[] | ||||||
|   reactions: MessageReactionsManager |   reactions: MessageReactionsManager | ||||||
|  | @ -63,10 +60,7 @@ export class Message extends Base { | ||||||
|     this.timestamp = data.timestamp |     this.timestamp = data.timestamp | ||||||
|     this.editedTimestamp = data.edited_timestamp |     this.editedTimestamp = data.edited_timestamp | ||||||
|     this.tts = data.tts |     this.tts = data.tts | ||||||
|     this.mentionEveryone = data.mention_everyone |  | ||||||
|     this.mentions = new MessageMentions(this.client, this) |     this.mentions = new MessageMentions(this.client, this) | ||||||
|     this.mentionRoles = data.mention_roles |  | ||||||
|     this.mentionChannels = data.mention_channels |  | ||||||
|     this.attachments = data.attachments |     this.attachments = data.attachments | ||||||
|     this.embeds = data.embeds.map((v) => new Embed(v)) |     this.embeds = data.embeds.map((v) => new Embed(v)) | ||||||
|     this.reactions = new MessageReactionsManager(this.client, this) |     this.reactions = new MessageReactionsManager(this.client, this) | ||||||
|  | @ -88,9 +82,6 @@ export class Message extends Base { | ||||||
|     this.timestamp = data.timestamp ?? this.timestamp |     this.timestamp = data.timestamp ?? this.timestamp | ||||||
|     this.editedTimestamp = data.edited_timestamp ?? this.editedTimestamp |     this.editedTimestamp = data.edited_timestamp ?? this.editedTimestamp | ||||||
|     this.tts = data.tts ?? this.tts |     this.tts = data.tts ?? this.tts | ||||||
|     this.mentionEveryone = data.mention_everyone ?? this.mentionEveryone |  | ||||||
|     this.mentionRoles = data.mention_roles ?? this.mentionRoles |  | ||||||
|     this.mentionChannels = data.mention_channels ?? this.mentionChannels |  | ||||||
|     this.attachments = data.attachments ?? this.attachments |     this.attachments = data.attachments ?? this.attachments | ||||||
|     this.embeds = data.embeds.map((v) => new Embed(v)) ?? this.embeds |     this.embeds = data.embeds.map((v) => new Embed(v)) ?? this.embeds | ||||||
|     this.nonce = data.nonce ?? this.nonce |     this.nonce = data.nonce ?? this.nonce | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue