fix(discord): apply hideGitHubButton

This commit is contained in:
JellyBrick
2023-10-10 00:42:10 +09:00
parent 5dc13a4698
commit a6c9b3381a

View File

@ -163,7 +163,7 @@ export default (
largeImageText: songInfo.album ?? '',
buttons: [
...(options.listenAlong ? [{ label: 'Listen Along', url: songInfo.url ?? '' }] : []),
{ label: 'View App On GitHub', url: 'https://github.com/th-ch/youtube-music' },
...(options.hideGitHubButton ? [] : [{ label: 'View App On GitHub', url: 'https://github.com/th-ch/youtube-music' }]),
],
};