Reverted back to a re-fork of discord.net

This commit is contained in:
Kwoth
2023-08-12 13:48:56 +00:00
parent f4b21a9445
commit 17ef3caefd
8 changed files with 18 additions and 8 deletions

6
NuGet.Config Normal file
View File

@@ -0,0 +1,6 @@
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="nadeko.bot" value="https://www.myget.org/F/nadeko/api/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>

View File

@@ -79,6 +79,8 @@ public sealed class DoAsUserMessage : IUserMessage
public IUser Author => _user; public IUser Author => _user;
public IThreadChannel Thread => _msg.Thread;
public IReadOnlyCollection<IAttachment> Attachments => _msg.Attachments; public IReadOnlyCollection<IAttachment> Attachments => _msg.Attachments;
public IReadOnlyCollection<IEmbed> Embeds => _msg.Embeds; public IReadOnlyCollection<IEmbed> Embeds => _msg.Embeds;
@@ -106,6 +108,7 @@ public sealed class DoAsUserMessage : IUserMessage
public MessageFlags? Flags => _msg.Flags; public MessageFlags? Flags => _msg.Flags;
public IMessageInteraction Interaction => _msg.Interaction; public IMessageInteraction Interaction => _msg.Interaction;
public MessageRoleSubscriptionData RoleSubscriptionData => _msg.RoleSubscriptionData;
public Task ModifyAsync(Action<MessageProperties> func, RequestOptions? options = null) public Task ModifyAsync(Action<MessageProperties> func, RequestOptions? options = null)
{ {

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net" Version="3.11.0" /> <PackageReference Include="Discord.Net" Version="3.202.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net" Version="3.11.0" /> <PackageReference Include="Discord.Net" Version="3.202.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
</ItemGroup> </ItemGroup>

View File

@@ -14,7 +14,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net" Version="3.11.0" /> <PackageReference Include="Discord.Net" Version="3.202.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> <PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
</ItemGroup> </ItemGroup>

View File

@@ -14,7 +14,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net.Core" Version="3.104.0"/> <PackageReference Include="Discord.Net.Core" Version="3.202.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -463,10 +463,11 @@ public partial class Utility : NadekoModule
tags = new[] { name }; tags = new[] { name };
await ctx.Guild.CreateStickerAsync(name, await ctx.Guild.CreateStickerAsync(name,
string.IsNullOrWhiteSpace(description) ? "Missing description" : description,
tags,
stream, stream,
$"{name}.{format}"); $"{name}.{format}",
tags,
description: string.IsNullOrWhiteSpace(description) ? "Missing description" : description
);
await ctx.OkAsync(); await ctx.OkAsync();
} }

View File

@@ -9,7 +9,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Discord.Net.Core" Version="3.104.0" /> <PackageReference Include="Discord.Net.Core" Version="3.202.0" />
<PackageReference Include="Serilog" Version="2.12.0" /> <PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="YamlDotNet" Version="13.0.2" /> <PackageReference Include="YamlDotNet" Version="13.0.2" />
</ItemGroup> </ItemGroup>