Skip to main content

Chapitre 7 - Les utilisateurs

Nous rejoindre sur Discord

Dans ce chapitre, nous allons voit comment fonctionne un utilisateur. Quels sont les interactions que l'on peut faire avec.

Retrouvez l'ensemble des informations sur les utilisateurs dans : discord.js - GuildMember

Structure de l'utilisateur

GuildMember { // Information sur l'utilisateur
  guild: <ref *1> Guild {
    id: '1003624283458785290',
    name: 'Formation Bot Discord',
    icon: 'c2a1d07fd0c51b8c0774461cea51a837',
    features: [],
    commands: GuildApplicationCommandManager {
      permissions: [ApplicationCommandPermissionsManager],
      guild: [Circular *1]
    },
    members: GuildMemberManager { guild: [Circular *1] },
    channels: GuildChannelManager { guild: [Circular *1] },
    bans: GuildBanManager { guild: [Circular *1] },
    roles: RoleManager { guild: [Circular *1] },
    presences: PresenceManager {},
    voiceStates: VoiceStateManager { guild: [Circular *1] },
    stageInstances: StageInstanceManager { guild: [Circular *1] },
    invites: GuildInviteManager { guild: [Circular *1] },
    scheduledEvents: GuildScheduledEventManager { guild: [Circular *1] },
    available: true,
    shardId: 0,
    splash: null,
    banner: null,
    description: null,
    verificationLevel: 0,
    vanityURLCode: null,
    nsfwLevel: 0,
    premiumSubscriptionCount: 0,
    discoverySplash: null,
    memberCount: 2,
    large: false,
    premiumProgressBarEnabled: false,
    applicationId: null,
    afkTimeout: 300,
    afkChannelId: null,
    systemChannelId: '1003624284553478276',
    premiumTier: 0,
    explicitContentFilter: 0,
    mfaLevel: 0,
    joinedTimestamp: 1659379225485,
    defaultMessageNotifications: 0,
    systemChannelFlags: SystemChannelFlagsBitField { bitfield: 0 },
    maximumMembers: 500000,
    maximumPresences: null,
    approximateMemberCount: null,
    approximatePresenceCount: null,
    vanityURLUses: null,
    rulesChannelId: null,
    publicUpdatesChannelId: null,
    preferredLocale: 'en-US',
    ownerId: '279989640210022401',
    emojis: GuildEmojiManager { guild: [Circular *1] },
    stickers: GuildStickerManager { guild: [Circular *1] }
  },
  joinedTimestamp: 1659353075815,
  premiumSinceTimestamp: null,
  nickname: null,
  pending: false,
  communicationDisabledUntilTimestamp: null,
  _roles: [],
  user: User {
    id: '279989640210022401',
    bot: false,
    system: false,
    flags: UserFlagsBitField { bitfield: 0 },
    username: 'Aros',
    discriminator: '2022',
    avatar: 'de8d06d7370b2cfb33916cc84f6bea83',
    banner: undefined,
    accentColor: undefined
  },
  avatar: null
}