mirror of
https://github.com/demodude4u/Factorio-FBSR.git
synced 2025-02-13 19:52:12 +02:00
Added invite link to info box
This commit is contained in:
parent
7b67f0e6a7
commit
4cf4ecf517
@ -42,6 +42,7 @@ import com.google.common.collect.Multiset;
|
||||
import com.google.common.util.concurrent.AbstractIdleService;
|
||||
|
||||
import net.dv8tion.jda.core.EmbedBuilder;
|
||||
import net.dv8tion.jda.core.Permission;
|
||||
import net.dv8tion.jda.core.entities.Message;
|
||||
import net.dv8tion.jda.core.entities.PrivateChannel;
|
||||
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
|
||||
@ -306,7 +307,16 @@ public class BlueprintBotDiscordService extends AbstractIdleService {
|
||||
.withTechnology("FBSR", "Factorio Blueprint String Renderer")//
|
||||
.withTechnology("FactorioDataWrapper", "Factorio Data Scraper")//
|
||||
.withCredits("Attribution", "Factorio - Made by Wube Software")//
|
||||
//
|
||||
.withInvite(new Permission[] { //
|
||||
Permission.MESSAGE_READ, //
|
||||
Permission.MESSAGE_WRITE, //
|
||||
Permission.MESSAGE_ATTACH_FILES, //
|
||||
Permission.MESSAGE_EXT_EMOJI, //
|
||||
Permission.MESSAGE_EMBED_LINKS, //
|
||||
Permission.MESSAGE_HISTORY, //
|
||||
Permission.MESSAGE_ADD_REACTION,//
|
||||
})//
|
||||
//
|
||||
.addCommand("blueprint", event -> {
|
||||
String content = event.getMessage().getStrippedContent();
|
||||
BlueprintReporting reporting = new BlueprintReporting();
|
||||
|
Loading…
x
Reference in New Issue
Block a user