chore: consistent return type
This commit is contained in:
		
							parent
							
								
									6dd40afd3e
								
							
						
					
					
						commit
						104aa4249e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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 === undefined) throw new Error('Guild is undefined') |     if (this.guild === undefined) return false | ||||||
|     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