import { EmojiEvent } from './emoji.event' ; import { Client , GuildEmoji } from 'discord.js' ; export class EmojiUpdateEvent extends EmojiEvent { constructor ( client , protected oldEmoji , protected newEmoji ) { super ( client ) ; } async handle ( ) { if ( this . oldEmoji . name === this . newEmoji . name ) { return ; } await this . updateList ( this . newEmoji . guild ) ; await this . logChange ( this . newEmoji . guild , `✏️ Updated ${ this . newEmoji }, renamed from \`:${ this . oldEmoji . name }:\` to \`:${ this . newEmoji . name }:\`` ) ; } }