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">
<value>Creation date</value>
</data>
<data name="GuildInfoLocale" xml:space="preserve">
<value>Guild's language</value>
</data>
<data name="GuildInfoOwner" xml:space="preserve">
<value>Guild's owner</value>
<value>Guild owner</value>
</data>
<data name="GuildInfoServerBoost" xml:space="preserve">
<value>Server Boost</value>

View file

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

View file

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

View file

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

View file

@ -84,7 +84,10 @@ public static class Extensions
public static EmbedBuilder WithLargeGuildIcon(
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>

View file

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