You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

RpcWebhookUser.cs 717 B

12345678910111213141516171819202122232425
  1. using System.Diagnostics;
  2. using Model = Discord.API.User;
  3. namespace Discord.Rpc
  4. {
  5. [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
  6. public class RpcWebhookUser : RpcUser
  7. {
  8. public ulong WebhookId { get; }
  9. public override bool IsWebhook => true;
  10. internal RpcWebhookUser(DiscordRpcClient discord, ulong id, ulong webhookId)
  11. : base(discord, id)
  12. {
  13. WebhookId = webhookId;
  14. }
  15. internal static RpcWebhookUser Create(DiscordRpcClient discord, Model model, ulong webhookId)
  16. {
  17. var entity = new RpcWebhookUser(discord, model.Id, webhookId);
  18. entity.Update(model);
  19. return entity;
  20. }
  21. }
  22. }