[DOC] Setting Up Discord Channels In RAT 4

Badplayer

Number Two
JFF Member
JFF Supporter
7D2D RAT Supporter
Aug 13, 2019
245
40
28

In RAT 4, we have added variables for Discord channel names in events. This was done so you don't have to edit the channel name in every event, saving a lot of time.​


You can specify these channel names in the default groups section in RAT.
1713813507183.png

In the Group editor, navigate to the Default group, then to Discord, Pings & Item Spawns tab.

The Discord section is where you want to edit these channels.
The very first 2 fields are where you want to add your channel name.

KEEP IN MIND THAT THE CHANNEL NAME HAS TO BE EXACT, INCLUDING ANY EMOJIS.

I would recommend copying the channel name from Discord and pasting it in RAT.
1713813766555.png

If you want everything to go to 1 channel, specify the same channel for both public and private channels.

To add the public discord channel variable to an event, you would use {discord_public_channel}.

Then, you only need to change the channel name in one place, rather than changing each event it is in.

If you want to add other channel variables, you can add those in the "Custom Attributes" tab in the Default Group Editor.​

Here, I have added a Discord Commands Channel.
The Key is the variable you will use in the event wrapped in curly brackets, in this case {discord_commands_channel}.
The Value is the channel you want the variable to be set to, in this case awesome-commands.
1713814562237.png

When adding a new attribute, choose new attribute in the custom attribute tab and make sure to click save when you are done editing it.
1713815243449.png

If you have a one off event and you want to add your Discord channel name in the event itself, you can still do that.​

In either the .DSAY, .DEMBED, .DPLAYERSEMBED or .DPLAYERSRAW RAT commands, you can just add your channel name instead of the variable, like this!
.DSAY:cool-channel-name-here:Somebody did a thing!
 
Last edited:
  • Love
Reactions: Trekkan