Oxide.Ext.Discord is an Oxide extension which acts as a bridge between Oxide and the Discord API.
Should you encounter a problem or bug with the extension, please feel free to create an issue here. Try to include as much detail as possible, including steps to reproduce the issue. A code example is highly appreciated.
Before upgrading to version 2.0.0 make sure all the discord extension plugins you plan to use support the new version. Plugins that were made for version 1.0.0 are not compatible with version 2.0.0.
To install the extension to your Oxide server, you must follow a few simple steps:
- Open the server files, and navigate to the "Managed" folder (eg. "RustDedicated_Data/Managed")
- Download the latest release.
- Copy the "Oxide.Ext.Discord.dll" file into your "Managed" folder.
- Restart your server!
If you would like to create plugins for the extension please Click Here to learn more
If the link doesn't work please try the readme on the github page
An API key is used to authenticate requests made to and from Discord.
Note: DO NOT SHARE YOUR API KEY!
Sharing your key may result in punishments from Discord (including a platform-wide ban) if the token is used to abuse the API.
Obtaining an API Key:
- Visit the official Discord Developers page here: Discord Developer Documentation
- Click "New App".
- Name your app and click create!
- You will now be redirected to your created app. Click on "Bot" on the left hand side and then "Add Bot".
- A) Under the newly created bot section, Enter the username for your bot and upload an icon.
B) Then enable the Presence and Server Members Intent and Message Content Intent.
C) To get your Discord API Token click on the "Copy" button.
D) This is the token that is used by discord extension plugins.
- A.Next we're going to setup the permissions that bot has in your Discord Server.
B.Click on OAuth2 on the left hand side.
C. Scroll down till your see scopes and permissions.
D. Under Scope select "Bot".
E. (Optional) Select "applications.commands"
F. Under permissions select which permissions that bot should have.
G. Once you have all of this selected click on the copy button.
(Optional) application.commands selection - Now it's time to add your new bot to your guild!
Paste the link from the previous step into the url section of your browser.
Select which Discord Server you want to invite the bot into and continue and then authorize.
- Your bot will now be in your discord server.
The discord extension configuration can be found at oxide/discord.config.json. The config allows you to modify the command prefixes for commands that use the discord extension command library.
{
"Commands": {
"Command Prefixes": [
"/",
"!"
]
}
}
Want to contribute? Create a fork of the repo and create a pull request for any changes you wish to make!