Jump to content

trade ban

Fixed 1.1.14 1.1.15

fullwiped
fullwiped

Posted

Hello, when I try to Trade Ban a player on Discord, it doesn’t ban them and gives the following error in RCON.
 

(19:17:37) | [DiscordExtension] [Exception]: An error occured during callback. Plugin: WTradingDiscord by Tom.bat v1.1.14 Method: WTradingDiscord.TradeBanButton (Index was outside the bounds of the array.)

at void Oxide.Plugins.WTradingDiscord.TradeBanButton(DiscordInteraction interaction) in /home/rustserver/serverfiles/carbon/plugins/WTradingDiscord.cs:line 395

at void Oxide.Ext.Discord.Libraries.ComponentCommand.RunCommand(DiscordInteraction interaction)

at void Oxide.Ext.Discord.Libraries.BaseAppCommand.HandleCommandInternal(DiscordInteraction interaction)



I edited the WTradingDiscord.json, set the logs_channel correctly, and added the admin role ID from Discord to ban_role_ids.
Could you please advise what exactly I’m doing wrong and suggest a solution?




 

fullwiped

Posted

I have configured the bot correctly and it also has administrator permissions.

image.png.f817af4a263cdbd531091db28ad93248.png

Tom.bat

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

Tom.bat

Posted

I've made a speculative fix to the plugin, can you also make sure your Discord extension is up to date.

Tom.bat

Posted

Changed Status from Work in Progress to Fixed

1.9m

Downloads

Total number of downloads.

9.1k

Customers

Total customers served.

133.4k

Files Sold

Total number of files sold.

2.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.