Search in sources :

Example 1 with JoinEmbeds

use of com.chill.projects.bot.embeds.types.JoinEmbeds in project Frost by woojiahao.

the class AutomaticCommands method onGuildJoin.

@Override
public void onGuildJoin(GuildJoinEvent event) {
    event.getGuild().getDefaultChannel().sendMessage(new JoinEmbeds(new DiscordSet(event.getGuild())).onBotJoinEmbed()).queue();
    FrostGuildList.addFrostGuild(event.getGuild().getId(), event.getGuild().getDefaultChannel().getId(), event.getGuild().getDefaultChannel().getId());
}
Also used : DiscordSet(com.chill.projects.bot.container.DiscordSet) JoinEmbeds(com.chill.projects.bot.embeds.types.JoinEmbeds)

Example 2 with JoinEmbeds

use of com.chill.projects.bot.embeds.types.JoinEmbeds in project Frost by woojiahao.

the class EmbedCreator method createWelcomeEmbed.

public MessageEmbed createWelcomeEmbed(FrostEmbedType frostEmbedType, DiscordSet set) {
    sets = new JoinEmbeds(set);
    MessageEmbed messageEmbed = null;
    switch(frostEmbedType) {
        case WELCOME:
            messageEmbed = ((JoinEmbeds) sets).onUserJoinEmbed();
            break;
    }
    return messageEmbed;
}
Also used : MessageEmbed(net.dv8tion.jda.core.entities.MessageEmbed) JoinEmbeds(com.chill.projects.bot.embeds.types.JoinEmbeds)

Aggregations

JoinEmbeds (com.chill.projects.bot.embeds.types.JoinEmbeds)2 DiscordSet (com.chill.projects.bot.container.DiscordSet)1 MessageEmbed (net.dv8tion.jda.core.entities.MessageEmbed)1