src/main/java/me/evyn/bot/commands/info/Invite.java
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {
        User bot = event.getJDA().getSelfUser();

        String invite = event.getJDA().getInviteUrl(
                Permission.MANAGE_ROLES,
                Permission.MANAGE_CHANNEL,
                Permission.KICK_MEMBERS,
                Permission.BAN_MEMBERS,
                Permission.NICKNAME_MANAGE,
                Permission.NICKNAME_CHANGE,
                Permission.MANAGE_EMOTES,
                Permission.VIEW_AUDIT_LOGS,
                Permission.MESSAGE_READ,
                Permission.MESSAGE_WRITE,
                Permission.MESSAGE_MANAGE,
                Permission.MESSAGE_EMBED_LINKS,
                Permission.MESSAGE_ATTACH_FILES,
                Permission.MESSAGE_HISTORY,
                Permission.MESSAGE_MENTION_EVERYONE,
                Permission.MESSAGE_ADD_REACTION,
                Permission.VOICE_CONNECT,
                Permission.VOICE_SPEAK,
                Permission.VOICE_DEAF_OTHERS,
                Permission.VOICE_MOVE_OTHERS
        );

        if (embed) {
            EmbedBuilder eb = EmbedCreator.newInfoEmbedMessage(bot);
            eb.setDescription("Invite me to your own Discord server using [this link](" + invite + ")");
            event.getChannel()
                    .sendMessage(eb.build())
                    .queue();
        } else {
            event.getChannel()
                    .sendMessage("Invite me to your own Discord server here:" + "\n" + "<" + invite + ">")
                    .queue();
        }


    }
/**
     * Generates and sends an oauth2 invite link
     * @param event Discord API message event
     * @param prefix Specific guild bot prefix
     * @param embed Guild embed setting
     * @param args Command arguments
     */
Generates and sends an oauth2 invite link
@param event Discord API message event
@param prefix Specific guild bot prefix
@param embed Guild embed setting
@param args Command arguments
Generates and sends an oauth2 invite link @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {
        User bot = event.getJDA().getSelfUser();
        String invite = event.getJDA().getInviteUrl(
                Permission.MANAGE_ROLES,
                Permission.MANAGE_CHANNEL,
                Permission.KICK_MEMBERS,
                Permission.BAN_MEMBERS,
                Permission.NICKNAME_MANAGE,
                Permission.NICKNAME_CHANGE,
                Permission.MANAGE_EMOTES,
                Permission.VIEW_AUDIT_LOGS,
                Permission.MESSAGE_READ,
                Permission.MESSAGE_WRITE,
                Permission.MESSAGE_MANAGE,
                Permission.MESSAGE_EMBED_LINKS,
                Permission.MESSAGE_ATTACH_FILES,
                Permission.MESSAGE_HISTORY,
                Permission.MESSAGE_MENTION_EVERYONE,
                Permission.MESSAGE_ADD_REACTION,
                Permission.VOICE_CONNECT,
                Permission.VOICE_SPEAK,
                Permission.VOICE_DEAF_OTHERS,
                Permission.VOICE_MOVE_OTHERS
        );
        if (embed) {
            EmbedBuilder eb = EmbedCreator.newInfoEmbedMessage(bot);
            eb.setDescription("Invite me to your own Discord server using [this link](" + invite + ")");
            event.getChannel()
                    .sendMessage(eb.build())
                    .queue();
        } else {
            event.getChannel()
                    .sendMessage("Invite me to your own Discord server here:" + "\n" + "<" + invite + ">")
                    .queue();
        }
    }
@ Override public void run ( MessageReceivedEvent event , String prefix , boolean embed , String [ ] args ) { User bot = event . getJDA ( ) . getSelfUser ( ) ; String invite = event . getJDA ( ) . getInviteUrl ( Permission . MANAGE_ROLES , Permission . MANAGE_CHANNEL , Permission . KICK_MEMBERS , Permission . BAN_MEMBERS , Permission . NICKNAME_MANAGE , Permission . NICKNAME_CHANGE , Permission . MANAGE_EMOTES , Permission . VIEW_AUDIT_LOGS , Permission . MESSAGE_READ , Permission . MESSAGE_WRITE , Permission . MESSAGE_MANAGE , Permission . MESSAGE_EMBED_LINKS , Permission . MESSAGE_ATTACH_FILES , Permission . MESSAGE_HISTORY , Permission . MESSAGE_MENTION_EVERYONE , Permission . MESSAGE_ADD_REACTION , Permission . VOICE_CONNECT , Permission . VOICE_SPEAK , Permission . VOICE_DEAF_OTHERS , Permission . VOICE_MOVE_OTHERS ) ; if ( embed ) { EmbedBuilder eb = EmbedCreator . newInfoEmbedMessage ( bot ) ; eb . setDescription ( "Invite me to your own Discord server using [this link](" + invite + ")" ) ; event . getChannel ( ) . sendMessage ( eb . build ( ) ) . queue ( ) ; } else { event . getChannel ( ) . sendMessage ( "Invite me to your own Discord server here:" + "\n" + "<" + invite + ">" ) . queue ( ) ; } }
Generates and sends an oauth2 invite link
 @param event Discord API message event
 @param prefix Specific guild bot prefix
 @param embed Guild embed setting
 @param args Command arguments
Generates and sends an oauth2 invite link @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments