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. */ | ||||
|   async edit(data: ModifyGuildEmojiParams) { | ||||
|     if (!this.guild) throw new Error('Guild is undefined') | ||||
|   async edit(data: ModifyGuildEmojiParams): Promise<Emoji> { | ||||
|     if (this.guild === undefined) throw new Error('Guild is undefined') | ||||
|     const res = await this.client.rest.patch( | ||||
|       EMOJI(this.guild.id, this.id), | ||||
|       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. */ | ||||
|   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)) | ||||
|     return true | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue