Make linter happy :)
This commit is contained in:
		
							parent
							
								
									bef4d45a40
								
							
						
					
					
						commit
						6dd40afd3e
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -39,8 +39,8 @@ export class Emoji extends Base { | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   /** Modify the given emoji. Requires the MANAGE_EMOJIS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. */ |   /** Modify the given emoji. Requires the MANAGE_EMOJIS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. */ | ||||||
|   async edit(data: ModifyGuildEmojiParams) { |   async edit(data: ModifyGuildEmojiParams): Promise<Emoji> { | ||||||
|     if (!this.guild) throw new Error('Guild is undefined') |     if (this.guild === undefined) throw new Error('Guild is undefined') | ||||||
|     const res = await this.client.rest.patch( |     const res = await this.client.rest.patch( | ||||||
|       EMOJI(this.guild.id, this.id), |       EMOJI(this.guild.id, this.id), | ||||||
|       data |       data | ||||||
|  | @ -50,7 +50,7 @@ export class Emoji extends Base { | ||||||
| 
 | 
 | ||||||
|   /** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns `true` on success. Fires a Guild Emojis Update Gateway event. */ |   /** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns `true` on success. Fires a Guild Emojis Update Gateway event. */ | ||||||
|   async delete(): Promise<boolean> { |   async delete(): Promise<boolean> { | ||||||
|     if (!this.guild) throw new Error('Guild is undefined') |     if (this.guild === undefined) throw new Error('Guild is undefined') | ||||||
|     await this.client.rest.patch(EMOJI(this.guild.id, this.id)) |     await this.client.rest.patch(EMOJI(this.guild.id, this.id)) | ||||||
|     return true |     return true | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue