Beispiel #1
0
 public Task ReorderChannelsAsync(IReadOnlyDictionary <Snowflake, int> positions, RestRequestOptions options = null)
 => Client.ReorderChannelsAsync(Id, positions, options);
Beispiel #2
0
        public async Task PinMessageAsync(Snowflake messageId, RestRequestOptions options = null)
        {
            await Client.PinMessageAsync(Id, messageId, options).ConfigureAwait(false);

            LastPinTimestamp = DateTimeOffset.UtcNow;
        }
Beispiel #3
0
 public Task TriggerTypingAsync(RestRequestOptions options = null)
 => Client.TriggerTypingAsync(Id, options);
Beispiel #4
0
 public RestRequestEnumerable <RestUser> GetReactionsEnumerable(Snowflake messageId, IEmoji emoji, int limit, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetReactionsEnumerable(Id, messageId, emoji, limit, startFromId, options);
Beispiel #5
0
 public Task <RestUserMessage> ModifyMessageAsync(Snowflake messageId, Action <ModifyMessageProperties> action, RestRequestOptions options = null)
 => Client.ModifyMessageAsync(Id, messageId, action, options);
Beispiel #6
0
 public RestRequestEnumerable <RestMessage> GetMessagesEnumerable(int limit, RetrievalDirection direction = RetrievalDirection.Before, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMessagesEnumerable(Id, limit, direction, startFromId, options);
Beispiel #7
0
 public Task <RestMessage> GetMessageAsync(Snowflake messageId, RestRequestOptions options = null)
 => Client.GetMessageAsync(Id, messageId, options);
Beispiel #8
0
 public Task RevokeRoleAsync(Snowflake memberId, Snowflake roleId, RestRequestOptions options = null)
 => Client.RevokeRoleAsync(Id, memberId, roleId, options);
Beispiel #9
0
 public Task KickMemberAsync(Snowflake memberId, RestRequestOptions options = null)
 => Client.KickMemberAsync(Id, memberId, options);
Beispiel #10
0
 public Task ModifyMemberAsync(Snowflake memberId, Action <ModifyMemberProperties> action, RestRequestOptions options = null)
 => Client.ModifyMemberAsync(Id, memberId, action, options);
Beispiel #11
0
 public Task ModifyOwnNickAsync(string nick, RestRequestOptions options = null)
 => Client.ModifyOwnNickAsync(Id, nick, options);
Beispiel #12
0
 public Task <IReadOnlyList <RestMember> > GetMembersAsync(int limit = 1000, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMembersAsync(Id, limit, startFromId, options);
Beispiel #13
0
 public RestRequestEnumerable <RestMember> GetMembersEnumerable(int limit, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMembersEnumerable(Id, limit, startFromId, options);
Beispiel #14
0
 public Task <RestMember> GetMemberAsync(Snowflake memberId, RestRequestOptions options = null)
 => Client.GetMemberAsync(Id, memberId, options);
Beispiel #15
0
 public Task CloseAsync(RestRequestOptions options = null)
 => Client.DeleteOrCloseChannelAsync(Id, options);
Beispiel #16
0
 public Task <RestBan> GetBanAsync(Snowflake userId, RestRequestOptions options = null)
 => Client.GetBanAsync(Id, userId, options);
Beispiel #17
0
 public Task <RestUserMessage> SendMessageAsync(IEnumerable <LocalAttachment> attachments, string content = null, bool isTTS = false, LocalEmbed embed = null, LocalMentions mentions = null, RestRequestOptions options = null)
 => Client.SendMessageAsync(Id, attachments, content, isTTS, embed, mentions, options);
Beispiel #18
0
 public Task BanMemberAsync(Snowflake memberId, string reason = null, int?deleteMessageDays = null, RestRequestOptions options = null)
 => Client.BanMemberAsync(Id, memberId, reason, deleteMessageDays, options);
Beispiel #19
0
 public Task <IReadOnlyList <RestMessage> > GetMessagesAsync(int limit = 100, RetrievalDirection direction = RetrievalDirection.Before, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetMessagesAsync(Id, limit, direction, startFromId, options);
Beispiel #20
0
 public Task UnbanMemberAsync(Snowflake userId, RestRequestOptions options = null)
 => Client.UnbanMemberAsync(Id, userId, options);
Beispiel #21
0
 public Task RemoveOwnReactionAsync(Snowflake messageId, IEmoji emoji, RestRequestOptions options = null)
 => Client.RemoveOwnReactionAsync(Id, messageId, emoji, options);
Beispiel #22
0
 public Task <IReadOnlyList <RestRole> > GetRolesAsync(RestRequestOptions options = null)
 => Client.GetRolesAsync(Id, options);
Beispiel #23
0
 public Task <IReadOnlyList <RestUser> > GetReactionsAsync(Snowflake messageId, IEmoji emoji, int limit = 100, Snowflake?startFromId = null, RestRequestOptions options = null)
 => Client.GetReactionsAsync(Id, messageId, emoji, limit, startFromId, options);
Beispiel #24
0
 public Task <RestRole> CreateRoleAsync(Action <CreateRoleProperties> action = null, RestRequestOptions options = null)
 => Client.CreateRoleAsync(Id, action, options);
Beispiel #25
0
 public Task <IReadOnlyList <RestUserMessage> > GetPinnedMessagesAsync(RestRequestOptions options = null)
 => Client.GetPinnedMessagesAsync(Id, options);
Beispiel #26
0
 public Task <IReadOnlyList <RestRole> > ReorderRolesAsync(IReadOnlyDictionary <Snowflake, int> positions, RestRequestOptions options = null)
 => Client.ReorderRolesAsync(Id, positions, options);
Beispiel #27
0
 public Task UnpinMessageAsync(Snowflake messageId, RestRequestOptions options = null)
 => Client.UnpinMessageAsync(Id, messageId, options);
Beispiel #28
0
 public Task <RestRole> ModifyRoleAsync(Snowflake roleId, Action <ModifyRoleProperties> action, RestRequestOptions options = null)
 => Client.ModifyRoleAsync(Id, roleId, action, options);
Beispiel #29
0
 public Task ModifyAsync(Action <ModifyCurrentUserProperties> action, RestRequestOptions options = null)
 => Client.ModifyCurrentUserAsync(action, options);
Beispiel #30
0
 public Task <RestCategoryChannel> CreateCategoryChannelAsync(string name, Action <CreateCategoryChannelProperties> action = null, RestRequestOptions options = null)
 => Client.CreateCategoryChannelAsync(Id, name, action, options);