public Task <IReadOnlyList <RestGuildEmoji> > GetEmojisAsync(RestRequestOptions options = null)
 => Client.GetGuildEmojisAsync(Id, options);
 public Task <IReadOnlyList <RestRole> > ReorderRolesAsync(IReadOnlyDictionary <Snowflake, int> positions, RestRequestOptions options = null)
 => Client.ReorderRolesAsync(Id, positions, options);
Example #3
0
 public Task DeleteAsync(RestRequestOptions options = null)
     => Client.DeleteOverwriteAsync(Channel.Id, TargetId, options);
 public Task BanMemberAsync(Snowflake memberId, string reason = null, int?deleteMessageDays = null, RestRequestOptions options = null)
 => Client.BanMemberAsync(Id, memberId, reason, deleteMessageDays, options);
 public Task <IReadOnlyList <RestRole> > GetRolesAsync(RestRequestOptions options = null)
 => Client.GetRolesAsync(Id, options);
 public Task ModifyOwnNickAsync(string nick, RestRequestOptions options = null)
 => Client.ModifyOwnNickAsync(Id, nick, options);
 public Task KickMemberAsync(Snowflake memberId, RestRequestOptions options = null)
 => Client.KickMemberAsync(Id, memberId, options);
 // IGuild
 public Task <IReadOnlyList <RestWebhook> > GetWebhooksAsync(RestRequestOptions options = null)
 => Client.GetGuildWebhooksAsync(Id, options);
 public RestRequestEnumerable <T> GetAuditLogsEnumerable <T>(int limit = 100, Snowflake?userId = null, Snowflake?startFromId = null, RestRequestOptions options = null) where T : RestAuditLog
 => Client.GetAuditLogsEnumerable <T>(Id, limit, userId, startFromId, options);
Example #10
0
 public Task DeleteEmojiAsync(Snowflake emojiId, RestRequestOptions options = null)
 => Client.DeleteGuildEmojiAsync(Id, emojiId, options);
Example #11
0
 public Task <RestPreview> GetPreviewAsync(RestRequestOptions options = null)
 => Client.GetPreviewAsync(Id, options);
Example #12
0
 public Task <RestGuildEmoji> ModifyEmojiAsync(Snowflake emojiId, Action <ModifyGuildEmojiProperties> action, RestRequestOptions options = null)
 => Client.ModifyGuildEmojiAsync(Id, emojiId, action, options);
Example #13
0
 public Task <RestGuildEmoji> CreateEmojiAsync(Stream image, string name, IEnumerable <Snowflake> roleIds = null, RestRequestOptions options = null)
 => Client.CreateGuildEmojiAsync(Id, image, name, roleIds, options);
Example #14
0
 public Task <RestGuildEmoji> GetEmojiAsync(Snowflake emojiId, RestRequestOptions options = null)
 => Client.GetGuildEmojiAsync(Id, emojiId, options);
Example #15
0
 public Task <IReadOnlyList <RestMember> > GetMembersAsync(int limit = 1000, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMembersAsync(Id, limit, startFromId, options);
Example #16
0
 public Task <IReadOnlyList <T> > GetAuditLogsAsync <T>(int limit = 100, Snowflake?userId = null, Snowflake?startFromId = null, RestRequestOptions options = null) where T : RestAuditLog
 => Client.GetAuditLogsAsync <T>(Id, limit, userId, startFromId, options);
Example #17
0
 public Task ModifyMemberAsync(Snowflake memberId, Action <ModifyMemberProperties> action, RestRequestOptions options = null)
 => Client.ModifyMemberAsync(Id, memberId, action, options);
Example #18
0
        public async Task ModifyAsync(Action <ModifyGuildProperties> action, RestRequestOptions options = null)
        {
            var model = await Client.RestClient.InternalModifyGuildAsync(Id, action, options).ConfigureAwait(false);

            Update(model);
        }
Example #19
0
 public Task RevokeRoleAsync(Snowflake memberId, Snowflake roleId, RestRequestOptions options = null)
 => Client.RevokeRoleAsync(Id, memberId, roleId, options);
Example #20
0
 public Task <IReadOnlyList <RestGuildChannel> > GetChannelsAsync(RestRequestOptions options = null)
 => Client.GetChannelsAsync(Id, options);
Example #21
0
 public Task <RestBan> GetBanAsync(Snowflake userId, RestRequestOptions options = null)
 => Client.GetBanAsync(Id, userId, options);
Example #22
0
 public Task <RestCategoryChannel> CreateCategoryChannelAsync(string name, Action <CreateCategoryChannelProperties> action = null, RestRequestOptions options = null)
 => Client.CreateCategoryChannelAsync(Id, name, action, options);
Example #23
0
 public Task UnbanMemberAsync(Snowflake userId, RestRequestOptions options = null)
 => Client.UnbanMemberAsync(Id, userId, options);
Example #24
0
 public Task ReorderChannelsAsync(IReadOnlyDictionary <Snowflake, int> positions, RestRequestOptions options = null)
 => Client.ReorderChannelsAsync(Id, positions, options);
Example #25
0
 public Task <RestRole> CreateRoleAsync(Action <CreateRoleProperties> action = null, RestRequestOptions options = null)
 => Client.CreateRoleAsync(Id, action, options);
Example #26
0
 public Task <RestMember> GetMemberAsync(Snowflake memberId, RestRequestOptions options = null)
 => Client.GetMemberAsync(Id, memberId, options);
Example #27
0
 public Task <RestRole> ModifyRoleAsync(Snowflake roleId, Action <ModifyRoleProperties> action, RestRequestOptions options = null)
 => Client.ModifyRoleAsync(Id, roleId, action, options);
Example #28
0
 public RestRequestEnumerable <RestMember> GetMembersEnumerable(int limit, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMembersEnumerable(Id, limit, startFromId, options);
Example #29
0
 /// <summary>
 ///     Deletes this relationship regardless of <see cref="Type"/>.
 /// </summary>
 public Task DeleteAsync(RestRequestOptions options = null)
 => Client.DeleteRelationshipAsync(User.Id, options);
Example #30
0
 public Task LeaveAsync(RestRequestOptions options = null)
 => Client.LeaveGuildAsync(Id, options);