mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix: remove async from class methods for getting author
This commit is contained in:
1 parent
230ba5fd93
commit
fe14fc308f
17 files changed
+23
-23
No files matched your search
@@ -162,9 +162,9 @@ abstract class BaseInteractionWithEmbedResponse extends BaseInteraction {
|
||||
super();
|
||||
}
|
||||
|
||||
protected async getEmbedUserAuthor(
|
||||
protected getEmbedUserAuthor(
|
||||
interaction: MessageComponentInteraction | ChatInputCommandInteraction
|
||||
): Promise<EmbedAuthorOptions> {
|
||||
): EmbedAuthorOptions {
|
||||
let authorName: string = '';
|
||||
if (interaction.member instanceof GuildMember) {
|
||||
authorName = interaction.member.nickname || interaction.user.username;
|
||||
@@ -178,10 +178,10 @@ abstract class BaseInteractionWithEmbedResponse extends BaseInteraction {
|
||||
};
|
||||
}
|
||||
|
||||
protected async getEmbedQueueAuthor(
|
||||
protected getEmbedQueueAuthor(
|
||||
interaction: MessageComponentInteraction | ChatInputCommandInteraction,
|
||||
queue: GuildQueue
|
||||
): Promise<EmbedAuthorOptions> {
|
||||
): EmbedAuthorOptions {
|
||||
return {
|
||||
name: `Channel: ${queue.channel!.name} (${queue.channel!.bitrate / 1000}kbps)`,
|
||||
iconURL: interaction.guild!.iconURL() || this.embedOptions.info.fallbackIconUrl
|
||||
|
||||
Reference in new issue
Block a user