• Check if a user has access via Discord roles in a specific server. The function will check if the user has any of the roles in the roles object in the server specified in the server property. If process.env.NODE_ENV is set to "development", the function will return true if the user is the owner of the bot application.

    Parameters

    • user: string

      The user to check access for.

    • restriction: string | string[]

      The restriction type to check access for.

    • settings: AccessSettings

      The settings to use for access checking.

    • client: Client<boolean>

      The discord.js Client.

    Returns Promise<boolean>