コード例 #1
0
 public Task <RestChannel> GetChannelAsync(ulong id, RequestOptions options = null)
 => ClientHelper.GetChannelAsync(this, id, options);
コード例 #2
0
 public Task RemoveRoleAsync(ulong guildId, ulong userId, ulong roleId)
 => ClientHelper.RemoveRoleAsync(this, guildId, userId, roleId);
コード例 #3
0
 public async Task <RestApplication> GetApplicationInfoAsync(RequestOptions options = null)
 {
     return(_applicationInfo ?? (_applicationInfo = await ClientHelper.GetApplicationInfoAsync(this, options).ConfigureAwait(false)));
 }
コード例 #4
0
 /// <inheritdoc />
 public Task <BotGateway> GetBotGatewayAsync(RequestOptions options = null)
 => ClientHelper.GetBotGatewayAsync(this, options);
コード例 #5
0
 public Task <IReadOnlyCollection <RestGuildCommand> > GetGuildApplicationCommands(ulong guildId, RequestOptions options = null)
 => ClientHelper.GetGuildApplicationCommands(this, guildId, options);
コード例 #6
0
 public Task <RestInviteMetadata> GetInviteAsync(string inviteId, RequestOptions options = null)
 => ClientHelper.GetInviteAsync(this, inviteId, options);
コード例 #7
0
 public Task <RestGuild> GetGuildAsync(ulong id, bool withCounts, RequestOptions options = null)
 => ClientHelper.GetGuildAsync(this, id, withCounts, options);
コード例 #8
0
 public Task <RestUser> GetUserAsync(ulong id, RequestOptions options = null)
 => ClientHelper.GetUserAsync(this, id, options);
コード例 #9
0
 public Task <RestGuildUser> GetGuildUserAsync(ulong guildId, ulong id, RequestOptions options = null)
 => ClientHelper.GetGuildUserAsync(this, guildId, id, options);
コード例 #10
0
 public Task <IReadOnlyCollection <RestGuild> > GetGuildsAsync(bool withCounts, RequestOptions options = null)
 => ClientHelper.GetGuildsAsync(this, withCounts, options);
コード例 #11
0
 public Task <RestGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null, RequestOptions options = null)
 => ClientHelper.CreateGuildAsync(this, name, region, jpegIcon, options);
コード例 #12
0
 public Task <IReadOnlyCollection <RestGuild> > GetGuildsAsync(RequestOptions options = null)
 => ClientHelper.GetGuildsAsync(this, false, options);
コード例 #13
0
 public IAsyncEnumerable <IReadOnlyCollection <RestUserGuild> > GetGuildSummariesAsync(ulong fromGuildId, int limit, RequestOptions options = null)
 => ClientHelper.GetGuildSummariesAsync(this, fromGuildId, limit, options);
コード例 #14
0
 public IAsyncEnumerable <IReadOnlyCollection <RestUserGuild> > GetGuildSummariesAsync(RequestOptions options = null)
 => ClientHelper.GetGuildSummariesAsync(this, null, null, options);
コード例 #15
0
 public Task <IReadOnlyCollection <RestGroupChannel> > GetGroupChannelsAsync(RequestOptions options = null)
 => ClientHelper.GetGroupChannelsAsync(this, options);
コード例 #16
0
 public Task <RestVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null)
 => ClientHelper.GetVoiceRegionAsync(this, id, options);
コード例 #17
0
 public Task <IReadOnlyCollection <RestConnection> > GetConnectionsAsync(RequestOptions options = null)
 => ClientHelper.GetConnectionsAsync(this, options);
コード例 #18
0
 public Task <RestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
 => ClientHelper.GetWebhookAsync(this, id, options);
コード例 #19
0
 public Task <RestGuild> GetGuildAsync(ulong id, RequestOptions options = null)
 => ClientHelper.GetGuildAsync(this, id, false, options);
コード例 #20
0
 public Task <IReadOnlyCollection <RestGlobalCommand> > GetGlobalApplicationCommands(RequestOptions options = null)
 => ClientHelper.GetGlobalApplicationCommands(this, options);
コード例 #21
0
 public Task <RestGuildWidget?> GetGuildWidgetAsync(ulong id, RequestOptions options = null)
 => ClientHelper.GetGuildWidgetAsync(this, id, options);
コード例 #22
0
 /// <inheritdoc />
 public Task <int> GetRecommendedShardCountAsync(RequestOptions options = null)
 => ClientHelper.GetRecommendShardCountAsync(this, options);