mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Use Messages.DescriptionActionExpiresAt
This commit is contained in:
parent
62b6ae736a
commit
a246b94241
5 changed files with 6 additions and 21 deletions
|
@ -636,7 +636,4 @@
|
||||||
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
||||||
<value>Muted with a mute role</value>
|
<value>Muted with a mute role</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ShowInfoUntil" xml:space="preserve">
|
|
||||||
<value>Until</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -636,7 +636,4 @@
|
||||||
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
||||||
<value>Заглушен с помощью мут роли</value>
|
<value>Заглушен с помощью мут роли</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ShowInfoUntil" xml:space="preserve">
|
|
||||||
<value>До</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -636,7 +636,4 @@
|
||||||
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
<data name="ShowInfoMutedWithMuteRole" xml:space="preserve">
|
||||||
<value>замучен ролькой</value>
|
<value>замучен ролькой</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ShowInfoUntil" xml:space="preserve">
|
|
||||||
<value>до</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
</root>
|
||||||
|
|
|
@ -144,8 +144,8 @@ public class ToolsCommandGroup : CommandGroup
|
||||||
if (memberData.BannedUntil < DateTimeOffset.MaxValue)
|
if (memberData.BannedUntil < DateTimeOffset.MaxValue)
|
||||||
{
|
{
|
||||||
builder.Append("- ").AppendLine(Messages.ShowInfoBanned)
|
builder.Append("- ").AppendLine(Messages.ShowInfoBanned)
|
||||||
.Append(" - ").Append(Messages.ShowInfoUntil).Append(' ')
|
.Append(" - ").AppendLine(string.Format(
|
||||||
.AppendLine(Markdown.Timestamp(memberData.BannedUntil.Value));
|
Messages.DescriptionActionExpiresAt, Markdown.Timestamp(memberData.BannedUntil.Value)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (memberData.BannedUntil >= DateTimeOffset.MaxValue)
|
if (memberData.BannedUntil >= DateTimeOffset.MaxValue)
|
||||||
|
@ -161,15 +161,15 @@ public class ToolsCommandGroup : CommandGroup
|
||||||
if (memberData.MutedUntil is not null && DateTimeOffset.UtcNow <= memberData.MutedUntil)
|
if (memberData.MutedUntil is not null && DateTimeOffset.UtcNow <= memberData.MutedUntil)
|
||||||
{
|
{
|
||||||
builder.Append(" - ").AppendLine(Messages.ShowInfoMutedWithMuteRole)
|
builder.Append(" - ").AppendLine(Messages.ShowInfoMutedWithMuteRole)
|
||||||
.Append(" - ").Append(Messages.ShowInfoUntil).Append(' ')
|
.Append(" - ").Append(" - ").AppendLine(string.Format(
|
||||||
.AppendLine(Markdown.Timestamp(memberData.MutedUntil.Value));
|
Messages.DescriptionActionExpiresAt, Markdown.Timestamp(memberData.MutedUntil.Value)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildMember is not null && guildMember.CommunicationDisabledUntil.IsDefined())
|
if (guildMember is not null && guildMember.CommunicationDisabledUntil.IsDefined())
|
||||||
{
|
{
|
||||||
builder.Append(" - ").AppendLine(Messages.ShowInfoMutedWithTimeout)
|
builder.Append(" - ").AppendLine(Messages.ShowInfoMutedWithTimeout)
|
||||||
.Append(" - ").Append(Messages.ShowInfoUntil).Append(' ')
|
.Append(" - ").Append(" - ").AppendLine(string.Format(
|
||||||
.AppendLine(Markdown.Timestamp(guildMember.CommunicationDisabledUntil.Value.Value));
|
Messages.DescriptionActionExpiresAt, Markdown.Timestamp(guildMember.CommunicationDisabledUntil.Value.Value)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6
src/Messages.Designer.cs
generated
6
src/Messages.Designer.cs
generated
|
@ -1085,11 +1085,5 @@ namespace Boyfriend {
|
||||||
return ResourceManager.GetString("ShowInfoMutedWithMuteRole", resourceCulture);
|
return ResourceManager.GetString("ShowInfoMutedWithMuteRole", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static string ShowInfoUntil {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ShowInfoUntil", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue