fix: remove async from class methods for getting author

This commit is contained in:
Marius Begby committed 2023-09-13 18:52:31 +02:00
1 parent 230ba5fd93
commit fe14fc308f
17 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -75,7 +75,7 @@ class VolumeCommand extends BaseSlashCommandInteraction {
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor(await this.getEmbedUserAuthor(interaction))
.setAuthor(this.getEmbedUserAuthor(interaction))
.setDescription(
`**${this.embedOptions.icons.volumeMuted} Audio muted**\nPlayback audio has been muted, because volume was set to **\`${volume}%\`**.`
)
@@ -88,7 +88,7 @@ class VolumeCommand extends BaseSlashCommandInteraction {
return await interaction.editReply({
embeds: [
new EmbedBuilder()
.setAuthor(await this.getEmbedUserAuthor(interaction))
.setAuthor(this.getEmbedUserAuthor(interaction))
.setDescription(
`**${this.embedOptions.icons.volumeChanged} Volume changed**\nPlayback volume has been changed to **\`${volume}%\`**.`
)