1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-13 17:26:08 +03:00

Resolving conversations

Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
Macintxsh 2023-10-06 15:00:36 +03:00
parent 83dcdb8cd7
commit a2d7075db6
Signed by: mctaylors
GPG key ID: 361D326747B61E65
6 changed files with 7 additions and 23 deletions

View file

@ -552,11 +552,8 @@
<data name="GuildInfoCreatedAt" xml:space="preserve"> <data name="GuildInfoCreatedAt" xml:space="preserve">
<value>Creation date</value> <value>Creation date</value>
</data> </data>
<data name="GuildInfoLocale" xml:space="preserve">
<value>Guild's language</value>
</data>
<data name="GuildInfoOwner" xml:space="preserve"> <data name="GuildInfoOwner" xml:space="preserve">
<value>Guild's owner</value> <value>Guild owner</value>
</data> </data>
<data name="GuildInfoServerBoost" xml:space="preserve"> <data name="GuildInfoServerBoost" xml:space="preserve">
<value>Server Boost</value> <value>Server Boost</value>

View file

@ -552,9 +552,6 @@
<data name="GuildInfoCreatedAt" xml:space="preserve"> <data name="GuildInfoCreatedAt" xml:space="preserve">
<value>Дата создания</value> <value>Дата создания</value>
</data> </data>
<data name="GuildInfoLocale" xml:space="preserve">
<value>Язык сервера</value>
</data>
<data name="GuildInfoOwner" xml:space="preserve"> <data name="GuildInfoOwner" xml:space="preserve">
<value>Владелец сервера</value> <value>Владелец сервера</value>
</data> </data>

View file

@ -552,9 +552,6 @@
<data name="GuildInfoCreatedAt" xml:space="preserve"> <data name="GuildInfoCreatedAt" xml:space="preserve">
<value>создался</value> <value>создался</value>
</data> </data>
<data name="GuildInfoLocale" xml:space="preserve">
<value>язык гильдии</value>
</data>
<data name="GuildInfoOwner" xml:space="preserve"> <data name="GuildInfoOwner" xml:space="preserve">
<value>админ гильдии</value> <value>админ гильдии</value>
</data> </data>

View file

@ -230,7 +230,7 @@ public class ToolsCommandGroup : CommandGroup
} }
/// <summary> /// <summary>
/// A slash command that shows information about guild. /// A slash command that shows guild information.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// Information in the output: /// Information in the output:
@ -287,10 +287,8 @@ public class ToolsCommandGroup : CommandGroup
description.Append("- ").AppendLine(Messages.GuildInfoCreatedAt) description.Append("- ").AppendLine(Messages.GuildInfoCreatedAt)
.AppendLine(Markdown.Timestamp(guild.ID.Timestamp)) .AppendLine(Markdown.Timestamp(guild.ID.Timestamp))
.Append("- ").AppendLine(Messages.GuildInfoLocale)
.AppendLine(Markdown.InlineCode(guild.PreferredLocale))
.Append("- ").AppendLine(Messages.GuildInfoOwner) .Append("- ").AppendLine(Messages.GuildInfoOwner)
.AppendLine($"<@{guild.OwnerID}>"); .AppendLine(Mention.User(guild.OwnerID));
var embedColor = ColorsList.Cyan; var embedColor = ColorsList.Cyan;

View file

@ -84,7 +84,10 @@ public static class Extensions
public static EmbedBuilder WithLargeGuildIcon( public static EmbedBuilder WithLargeGuildIcon(
this EmbedBuilder builder, IGuild iconSource) this EmbedBuilder builder, IGuild iconSource)
{ {
return builder.WithThumbnailUrl(CDN.GetGuildIconUrl(iconSource, imageSize: 256).Entity.AbsoluteUri); var iconUrlResult = CDN.GetGuildIconUrl(iconSource, imageSize: 256);
return iconUrlResult.IsSuccess
? builder.WithThumbnailUrl(iconUrlResult.Entity.AbsoluteUri)
: builder;
} }
/// <summary> /// <summary>

View file

@ -949,14 +949,6 @@ namespace Octobot {
} }
} }
internal static string GuildInfoLocale
{
get
{
return ResourceManager.GetString("GuildInfoLocale", resourceCulture);
}
}
internal static string GuildInfoOwner internal static string GuildInfoOwner
{ {
get get