Interface IGuildList
Interface for an observable collection of chat servers.
Inherited Members
Namespace: SociallyDistant.Core.Social
Assembly: SociallyDistant.Framework.dll
Syntax
public interface IGuildList : IReadOnlyList<IGuild>, IReadOnlyCollection<IGuild>, IEnumerable<IGuild>, IEnumerable, IDisposable
Methods
ObserveGuildAdded()
Observe any guild being added to this guild list.
Declaration
IObservable<IGuild> ObserveGuildAdded()
Returns
Type | Description |
---|---|
IObservable<IGuild> | An IObservable<T> that can be subscribed to in order to receive callbacks when a guild is added. |
ObserveGuildRemoved()
Observe any guild being removed from this guild list.
Declaration
IObservable<IGuild> ObserveGuildRemoved()
Returns
Type | Description |
---|---|
IObservable<IGuild> | An IObservable<T> that can be subscribed to in order to receive callbacks when a guild is removed. |
ThatHaveMember(IProfile)
Gets a subset of guilds that have a specific user as a member.
Declaration
IGuildList ThatHaveMember(IProfile profile)
Parameters
Type | Name | Description |
---|---|---|
IProfile | profile | The user to look for. |
Returns
Type | Description |
---|---|
IGuildList | A list of guilds of which the given user is a member. |