Skip to content

Commit

Permalink
upgrade nuget packages, bare minimum changes to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
xubiod committed Jan 16, 2024
1 parent af5ee26 commit bd1e609
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 8 deletions.
23 changes: 23 additions & 0 deletions xubot/src/Offline/OfflineClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ namespace xubot.Offline;

internal class OfflineClient : IDiscordClient
{
public Task<IReadOnlyCollection<SKU>> GetSKUsAsync(RequestOptions options = null)
{
throw new NotImplementedException();
}

public ConnectionState ConnectionState => ConnectionState.Connected;

public ISelfUser CurrentUser => OfflineHandlers.DefaultOfflineUser;
Expand Down Expand Up @@ -55,6 +60,24 @@ public Task<BotGateway> GetBotGatewayAsync(RequestOptions options = null)
throw new InvalidOperationException();
}

public Task<IEntitlement> CreateTestEntitlementAsync(ulong skuId, ulong ownerId, SubscriptionOwnerType ownerType,
RequestOptions options = null)
{
throw new NotImplementedException();
}

public Task DeleteTestEntitlementAsync(ulong entitlementId, RequestOptions options = null)
{
throw new NotImplementedException();
}

public IAsyncEnumerable<IReadOnlyCollection<IEntitlement>> GetEntitlementsAsync(int? limit, ulong? afterId = null, ulong? beforeId = null,
bool excludeEnded = false, ulong? guildId = null, ulong? userId = null, ulong[] skuIds = null,
RequestOptions options = null)
{
throw new NotImplementedException();
}

public Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null)
{
throw new InvalidOperationException();
Expand Down
8 changes: 8 additions & 0 deletions xubot/src/Offline/OfflineMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ internal class OfflineMessage : IUserMessage
{
public IUserMessage ReferencedMessage { get; set; }

public IAsyncEnumerable<IReadOnlyCollection<IUser>> GetReactionUsersAsync(IEmote emoji, int limit, RequestOptions options = null,
ReactionType type = ReactionType.Normal)
{
throw new NotImplementedException();
}

public MessageType Type { get; set; }

public MessageSource Source { get; set; }
Expand Down Expand Up @@ -165,6 +171,8 @@ public string Resolve(TagHandling userHandling = TagHandling.Name, TagHandling c
return emit;
}

public MessageResolvedData ResolvedData { get; }

public Task UnpinAsync(RequestOptions options = null)
{
IsPinned = false;
Expand Down
13 changes: 13 additions & 0 deletions xubot/src/Offline/OfflineUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ namespace xubot.Offline;

internal class OfflineUser : ISelfUser
{
public string GetAvatarDecorationUrl()
{
throw new NotImplementedException();
}

public string AvatarId => null;

public string Discriminator => "0000";
Expand All @@ -21,6 +26,9 @@ internal class OfflineUser : ISelfUser
public string Username => "OfflineUser";

public UserProperties? PublicFlags => null;
public string GlobalName { get; }
public string AvatarDecorationHash { get; }
public ulong? AvatarDecorationSkuId { get; }

public DateTimeOffset CreatedAt => DateTimeOffset.MinValue;

Expand Down Expand Up @@ -64,6 +72,11 @@ public string GetDefaultAvatarUrl()
return "";
}

public string GetDisplayAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
{
throw new NotImplementedException();
}

public Task<IDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null)
{
return (Task<IDMChannel>)(OfflineHandlers.DefaultOfflineChannel as IDMChannel);
Expand Down
16 changes: 8 additions & 8 deletions xubot/xubot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@

<ItemGroup>
<PackageReference Include="BooruSharp" Version="4.0.0-beta" />
<PackageReference Include="Discord.Net" Version="3.10.0" />
<PackageReference Include="Discord.Net" Version="3.13.0" />
<PackageReference Include="GitInfo" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="HtmlAgilityPack" Version="1.11.46" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.57" />
<PackageReference Include="NLua" Version="1.6.3" />
<PackageReference Include="Octokit" Version="6.0.0" />
<PackageReference Include="Octokit" Version="9.1.0" />
<PackageReference Include="RedditSharp" Version="2.0.0" />
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta19" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.0.1" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta15" />
<PackageReference Include="SteamKit2" Version="2.5.0-Beta.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-preview.5.23280.8" />
<PackageReference Include="SixLabors.Fonts" Version="2.0.1" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.0" />
<PackageReference Include="SteamKit2" Version="2.5.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
<PackageReference Include="System.Interactive" Version="6.0.1" />
<PackageReference Include="System.Interactive.Async" Version="6.0.1" />
<PackageReference Include="TweetinviAPI" Version="5.0.4" />
Expand Down

0 comments on commit bd1e609

Please sign in to comment.