Class GroupChannel
Assembly: Revolt.Net.dll​
View Source​
Declaration
public class GroupChannel : MessageChannel
Properties​
Name​
View Source​
Declaration
[JsonProperty("name")]
public string Name { get; }
OwnerId​
View Source​
Declaration
[JsonProperty("owner")]
public string OwnerId { get; }
Owner​
View Source​
Declaration
[JsonIgnore]
public User Owner { get; }
Description​
View Source​
Declaration
[JsonProperty("description")]
public string Description { get; }
Icon​
View Source​
Declaration
[JsonProperty("icon")]
public Attachment Icon { get; }
Methods​
AddMemberAsync(String)​
View Source​
Declaration
public Task AddMemberAsync(string userId)
Returns​
System.Threading.Tasks.Task
Parameters​
| Type | Name |
|---|---|
System.String | userId |
RemoveMemberAsync(String)​
View Source​
Declaration
public Task RemoveMemberAsync(string userId)
Returns​
System.Threading.Tasks.Task
Parameters​
| Type | Name |
|---|---|
System.String | userId |
LeaveAsync()​
View Source​
Declaration
public Task LeaveAsync()
Returns​
System.Threading.Tasks.Task
ToString()​
View Source​
Declaration
public override string ToString()
Returns​
System.String