mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-13 07:17:12 +03:00
Implement execution code with basic message tracking and GUI display
This commit is contained in:
parent
bc81581f94
commit
21f02b826a
@ -1 +1,13 @@
|
||||
/* execution */
|
||||
DISCORD.setupMessageRequestHook((channel, messages) => {
|
||||
if (STATE.isTracking()){
|
||||
var info = DISCORD.getSelectedChannel();
|
||||
|
||||
if (info.id == channel){ // Discord has a bug where the message request may be sent without switching channels
|
||||
STATE.addDiscordChannel(info.server, info.type, channel, info.channel);
|
||||
STATE.addDiscordMessages(channel, messages);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
GUI.showController();
|
||||
GUI.showSettings();
|
||||
|
Loading…
x
Reference in New Issue
Block a user