Skip to content

Commit

Permalink
refactor(lstnr-stream-online): remove deprecated usage of MessageEmbe…
Browse files Browse the repository at this point in the history
…d#addField()
  • Loading branch information
Lutonite committed Sep 28, 2022
1 parent d04176a commit f0c5cfe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/listeners/stream-online.listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ export default class StreamOnlineListener extends Listener {
`:tv: ${event.broadcasterDisplayName} - Stream en ligne !`,
)
.setURL(streamUrl)
.addField('Titre', stream?.title || 'Aucun titre');
.addFields({
name: 'Titre',
value: stream?.title || 'Aucun titre',
});

if (game) {
embed.addField('Jeu', game.name || 'Aucun jeu');
embed.addFields({ name: 'Jeu', value: game.name || 'Aucun jeu' });
embed.setThumbnail(game.boxArtUrl);
}

Expand Down

0 comments on commit f0c5cfe

Please sign in to comment.