src/main/java/com/tallcraft/chatreplay/DiscordSRVListener.java
// TODO: Currently only records main channel, allow user to configure
Currently only records main channel, allow user to configure
Currently only records main channel allow user to configure
@Subscribe(priority = ListenerPriority.MONITOR)
    public void discordMessageReceived(DiscordGuildMessageReceivedEvent event) {
        if (enabled) {
            boolean isMainChannel = DiscordSRV.getPlugin().getMainTextChannel().getId()
                    .equals(event.getChannel().getId());
            if (isMainChannel) {
                chatBuffer.addMessage(
                        new ChatMessage(
                                event.getAuthor().getName(),
                                event.getMessage().getContentStripped(),
                                event.getMessage().getTimeCreated()
                        ));
            }
        }
    }
@ Subscribe ( priority = ListenerPriority . MONITOR ) public void discordMessageReceived ( DiscordGuildMessageReceivedEvent event ) { if ( enabled ) { boolean isMainChannel = DiscordSRV . getPlugin ( ) . getMainTextChannel ( ) . getId ( ) . equals ( event . getChannel ( ) . getId ( ) ) ; if ( isMainChannel ) { chatBuffer . addMessage ( new ChatMessage ( event . getAuthor ( ) . getName ( ) , event . getMessage ( ) . getContentStripped ( ) , event . getMessage ( ) . getTimeCreated ( ) ) ) ; } } }
TODO: Currently only records main channel, allow user to configure
TODO : Currently only records main channel allow user to configure
// Only record messages for the main channel