mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Reverted back to a re-fork of discord.net
This commit is contained in:
6
NuGet.Config
Normal file
6
NuGet.Config
Normal 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>
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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>
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user