public TextChannel(Guild guild, Model model) : base(guild, model) { }
public override async Task <IReadOnlyCollection <IGuildUser> > GetUsersAsync() { var users = await Guild.GetUsersAsync().ConfigureAwait(false); return(users.Where(x => Permissions.GetValue(Permissions.ResolveChannel(x, this, x.GuildPermissions.RawValue), ChannelPermission.ReadMessages)).ToImmutableArray()); }
public GuildIntegration(Guild guild, Model model) : base(model.Id) { Guild = guild; Update(model, UpdateSource.Creation); }