no idea what i did, locale won't be pink anymore though, thx aurora
This commit is contained in:
parent
7ce0702c78
commit
b9673d5918
@ -840,11 +840,18 @@ namespace NadekoBot.Modules.Music
|
|||||||
{
|
{
|
||||||
lastFinishedMessage?.DeleteAfter(0);
|
lastFinishedMessage?.DeleteAfter(0);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
lastFinishedMessage = await mp.OutputTextChannel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
lastFinishedMessage = await mp.OutputTextChannel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
||||||
.WithAuthor(eab => eab.WithName("Finished Song").WithMusicIcon())
|
.WithAuthor(eab => eab.WithName("Finished Song").WithMusicIcon())
|
||||||
.WithDescription(song.PrettyName)
|
.WithDescription(song.PrettyName)
|
||||||
.WithFooter(ef => ef.WithText(song.PrettyInfo)))
|
.WithFooter(ef => ef.WithText(song.PrettyInfo)))
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
|
|
||||||
if (mp.Autoplay && mp.Playlist.Count == 0 && song.SongInfo.ProviderType == MusicType.Normal)
|
if (mp.Autoplay && mp.Playlist.Count == 0 && song.SongInfo.ProviderType == MusicType.Normal)
|
||||||
{
|
{
|
||||||
|
@ -32,7 +32,7 @@ namespace NadekoBot.Modules
|
|||||||
{
|
{
|
||||||
_cultureInfo = NadekoBot.Localization.GetCultureInfo(Context.Guild?.Id);
|
_cultureInfo = NadekoBot.Localization.GetCultureInfo(Context.Guild?.Id);
|
||||||
|
|
||||||
_log.Warn("Culture info is {0}", _cultureInfo);
|
_log.Info("Culture info is {0}", _cultureInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
//public Task<IUserMessage> ReplyConfirmLocalized(string titleKey, string textKey, string url = null, string footer = null)
|
//public Task<IUserMessage> ReplyConfirmLocalized(string titleKey, string textKey, string url = null, string footer = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user