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());
}
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;
}
Aggregations