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:
parent
83dcdb8cd7
commit
a2d7075db6
6 changed files with 7 additions and 23 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
8
src/Messages.Designer.cs
generated
8
src/Messages.Designer.cs
generated
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue