Goddamn it, i gotta install prettier plugin on vim
This commit is contained in:
		
							parent
							
								
									a14104ad14
								
							
						
					
					
						commit
						0a066a32e4
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -19,7 +19,7 @@ export class Emoji extends Base { | ||||||
| 
 | 
 | ||||||
|   get getEmojiString(): string { |   get getEmojiString(): string { | ||||||
|     if (this.id === null) { |     if (this.id === null) { | ||||||
|       return this.name as string; |       return this.name as string | ||||||
|     } else { |     } else { | ||||||
|       if (this.animated === false) { |       if (this.animated === false) { | ||||||
|         return `<:${this.name}:${this.id}>` |         return `<:${this.name}:${this.id}>` | ||||||
|  | @ -45,7 +45,7 @@ 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): Promise<Emoji> { |   async edit(data: ModifyGuildEmojiParams): Promise<Emoji> { | ||||||
|     if (this.id === null) throw new Error("Emoji ID is not valid."); |     if (this.id === null) throw new Error('Emoji ID is not valid.') | ||||||
|     if (this.guild === undefined) throw new Error('Guild is undefined') |     if (this.guild === undefined) throw new Error('Guild is undefined') | ||||||
|     const res = await this.client.rest.patch(EMOJI(this.guild.id, this.id!), { |     const res = await this.client.rest.patch(EMOJI(this.guild.id, this.id!), { | ||||||
|       ...data, |       ...data, | ||||||
|  | @ -56,7 +56,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.id === null) return false; |     if (this.id === null) return false | ||||||
|     if (this.guild === undefined) return false |     if (this.guild === undefined) return false | ||||||
|     await this.client.rest.delete(EMOJI(this.guild.id, this.id)) |     await this.client.rest.delete(EMOJI(this.guild.id, this.id)) | ||||||
|     return true |     return true | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue