Esempio n. 1
0
 public TextChannel(Guild guild, Model model)
     : base(guild, model)
 {
 }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
 public GuildIntegration(Guild guild, Model model)
     : base(model.Id)
 {
     Guild = guild;
     Update(model, UpdateSource.Creation);
 }