refactor: allow builders to accept emoji strings (#7616)

* refactor: allow emoji strings in button builder

* refactor: add emoji string support for select menu options

* fix: export select menu option

* chore: make requested changes

* Update packages/discord.js/typings/index.test-d.ts

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
Suneet Tipirneni
2022-03-24 15:58:50 -04:00
committed by GitHub
parent daf2829cb5
commit fb9a9c2211
7 changed files with 63 additions and 5 deletions

View File

@@ -43,8 +43,8 @@ export class UnsafeSelectMenuOptionBuilder {
}
/**
* Sets the emoji to display on this button
* @param emoji The emoji to display on this button
* Sets the emoji to display on this option
* @param emoji The emoji to display on this option
*/
public setEmoji(emoji: APIMessageComponentEmoji) {
this.data.emoji = emoji;