const isAdmin = await interaction.member.permissions.has('ADMINISTRATOR')

      Javascript language logodiscordj check interaction user admin status

      discord.js

      This code checks to see if the user has the permission ALREADY_ADMINISTRATED which indicates the user is an administrator.

      Shortcut: discordjs.utils.checkAdmin

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.