Skip to content

Commit b459dad

Browse files
Added missing migration and made commands global
1 parent 60b57ec commit b459dad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/net/javadiscord/javabot/Bot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static void main(String[] args) throws Exception {
109109
AllowedMentions.setDefaultMentions(EnumSet.of(Message.MentionType.ROLE, Message.MentionType.CHANNEL, Message.MentionType.USER, Message.MentionType.EMOJI));
110110
dih4jda = DIH4JDABuilder.setJDA(jda)
111111
.setCommandsPackage("net.javadiscord.javabot")
112-
.setDefaultCommandType(RegistrationType.GUILD)
112+
.setDefaultCommandType(RegistrationType.GLOBAL)
113113
.build();
114114
customTagManager = new CustomTagManager(jda, dataSource);
115115
messageCache = new MessageCache();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE user_preferences
2+
(
3+
user_id BIGINT NOT NULL,
4+
ordinal INTEGER NOT NULL,
5+
enabled BOOLEAN NOT NULL DEFAULT TRUE,
6+
PRIMARY KEY (user_id, ordinal)
7+
)

0 commit comments

Comments
 (0)