Skip to content

Commit

Permalink
Update deps; Add autocomplete provider for guild icon command
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Nov 3, 2024
1 parent 58e9273 commit d9566a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Commands/Common/GuildIconCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
using DSharpPlus;
using DSharpPlus.Commands;
using DSharpPlus.Commands.ContextChecks;
using DSharpPlus.Commands.Processors.SlashCommands.ArgumentModifiers;
using DSharpPlus.Commands.Trees;
using DSharpPlus.Commands.Trees.Metadata;
using DSharpPlus.Entities;
using OoLunar.Tomoe.AutoCompleteProviders;

namespace OoLunar.Tomoe.Commands.Common
{
Expand All @@ -22,7 +24,7 @@ public static class GuildIconCommand
/// <param name="imageDimensions">The maximum size of the icon. Must be a power of two, minimum 16, maximum 4096.</param>
/// <param name="guildId">The ID of the guild to get the icon from. Defaults to the current server.</param>
[Command("guild_icon"), TextAlias("guild_picture"), RequirePermissions(DiscordPermissions.EmbedLinks, DiscordPermissions.None)]
public static async ValueTask ExecuteAsync(CommandContext context, ImageFormat imageFormat = ImageFormat.Auto, ushort imageDimensions = 0, ulong guildId = 0)
public static async ValueTask ExecuteAsync(CommandContext context, ImageFormat imageFormat = ImageFormat.Auto, ushort imageDimensions = 0, [SlashAutoCompleteProvider<SharedGuildsAutoCompleteProvider>] ulong guildId = 0)
{
if (guildId == 0)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Tomoe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<EmbeddedResource Include="$(ProjectRoot)/src/Benchmarks/*.template" FileExtension=".template" />
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="Humanizer" Version="2.14.1" />
<PackageReference Include="LiveChartsCore.SkiaSharpView" Version="2.0.0-rc3.3" />
<PackageReference Include="LiveChartsCore" Version="2.0.0-rc3.3" />
<PackageReference Include="LiveChartsCore.SkiaSharpView" Version="2.0.0-rc4.5" />
<PackageReference Include="LiveChartsCore" Version="2.0.0-rc4.5" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
Expand All @@ -26,14 +26,14 @@
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageReference Include="Npgsql" Version="8.0.5" />
<PackageReference Include="Serilog" Version="4.0.2" />
<PackageReference Include="Serilog" Version="4.1.0" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.8" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="ThisAssembly" Version="2.0.5">
<PackageReference Include="ThisAssembly" Version="2.0.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit d9566a5

Please sign in to comment.