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.

DiscordSocketRestClient.cs 1017 B

1234567891011121314151617181920
  1. using System;
  2. using System.Threading.Tasks;
  3. using Discord.Rest;
  4. namespace Discord.WebSocket
  5. {
  6. public class DiscordSocketRestClient : DiscordRestClient
  7. {
  8. internal DiscordSocketRestClient(DiscordRestConfig config, API.DiscordRestApiClient api) : base(config, api) { }
  9. public new Task LoginAsync(TokenType tokenType, string token, bool validateToken = true)
  10. => throw new NotSupportedException("The Socket REST wrapper cannot be used to log in or out.");
  11. internal override Task LoginInternalAsync(TokenType tokenType, string token, bool validateToken)
  12. => throw new NotSupportedException("The Socket REST wrapper cannot be used to log in or out.");
  13. public new Task LogoutAsync()
  14. => throw new NotSupportedException("The Socket REST wrapper cannot be used to log in or out.");
  15. internal override Task LogoutInternalAsync()
  16. => throw new NotSupportedException("The Socket REST wrapper cannot be used to log in or out.");
  17. }
  18. }