Bug fixes in !quote
This commit is contained in:
parent
7eb62cb267
commit
7238e7177d
2 changed files with 55 additions and 8 deletions
31
Geekbot.net/Lib/Polyfills/UserPolyfillDto.cs
Normal file
31
Geekbot.net/Lib/Polyfills/UserPolyfillDto.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Discord;
|
||||
|
||||
namespace Geekbot.net.Lib.Polyfills
|
||||
{
|
||||
internal class UserPolyfillDto : IUser
|
||||
{
|
||||
public ulong Id { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
public string Mention { get; set; }
|
||||
public Game? Game { get; set; }
|
||||
public UserStatus Status { get; set; }
|
||||
public string AvatarId { get; set; }
|
||||
public string Discriminator { get; set; }
|
||||
public ushort DiscriminatorValue { get; set; }
|
||||
public bool IsBot { get; set; }
|
||||
public bool IsWebhook { get; set; }
|
||||
public string Username { get; set; }
|
||||
|
||||
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
|
||||
{
|
||||
return "https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png";
|
||||
}
|
||||
|
||||
public Task<IDMChannel> GetOrCreateDMChannelAsync(RequestOptions options = null)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue