Esempio n. 1
0
 /// <summary> Remove an existing ban from this community. </summary>
 public Task RemoveBanAsync(ulong userId, ulong victimId)
 => CommunityHelper.RemoveBanAsync(this, userId, victimId);
Esempio n. 2
0
 /// <summary> Get users timed out of this community. </summary>
 public Task <IReadOnlyCollection <RestBannedUser> > GetTimeoutsAsync(ulong userId, uint limit = 10)
 => CommunityHelper.GetTimeoutsAsync(this, userId, limit);
Esempio n. 3
0
 // Users
 /// <summary> Get users with moderator permissions in this community. </summary>
 public Task <IReadOnlyCollection <RestUser> > GetModeratorsAsync(ulong userId)
 => CommunityHelper.GetModeratorsAsync(this, userId);
Esempio n. 4
0
 /// <summary> Add a new ban to this community. </summary>
 public Task AddBanAsync(ulong userId, ulong victimId)
 => CommunityHelper.AddBanAsync(this, userId, victimId);
Esempio n. 5
0
 /// <summary> Upload a new cover image for this community. </summary>
 public Task SetCoverAsync(ulong userId, Stream coverStream)
 => CommunityHelper.SetCoverAsync(this, userId, coverStream);
Esempio n. 6
0
 /// <summary> Remove the cover image on this community. </summary>
 public Task RemoveCoverAsync(ulong userId)
 => CommunityHelper.RemoveCoverAsync(this, userId);
Esempio n. 7
0
 /// <summary> Upload a new avatar image for this community. </summary>
 public Task SetAvatarAsync(ulong userId, Stream avatarStream)
 => CommunityHelper.SetAvatarAsync(this, userId, avatarStream);
Esempio n. 8
0
 /// <summary> Upload a new cover image for this community. </summary>
 public Task SetCoverAsync(ulong userId, string coverPath)
 => CommunityHelper.SetCoverAsync(this, userId, coverPath);
Esempio n. 9
0
 /// <summary> Upload a new avatar image for this community. </summary>
 public Task SetAvatarAsync(ulong userId, string avatarPath)
 => CommunityHelper.SetAvatarAsync(this, userId, avatarPath);
Esempio n. 10
0
 /// <summary> Change properties for this community. </summary>
 public Task ModifyAsync(ulong userId, Action <ModifyCommunityParams> properties)
 => CommunityHelper.ModifyAsync(this, userId, properties);
Esempio n. 11
0
 // Communities
 /// <summary> Get the authorized user's permissions for this community. </summary>
 public Task <RestCommunityPermissions> GetPermissionsAsync(ulong userId)
 => CommunityHelper.GetPermissionsAsync(this, userId);
Esempio n. 12
0
 // Channels
 /// <summary> Report a channel for violating the rules of this community. </summary>
 public Task ReportChannelAsync(ulong userId, ulong channelId)
 => CommunityHelper.ReportChannelAsync(this, userId, channelId);
Esempio n. 13
0
 /// <summary> Add a new timeout to this community. </summary>
 public Task AddTimeoutAsync(ulong userId, ulong victimId, uint duration, string reason)
 => CommunityHelper.AddTimeoutAsync(this, userId, victimId, duration, reason);