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

fullwiped

Posted

On 8/20/2025 at 1:46 PM, Tom.bat said:

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



Thanks for the update, the console warning is gone now. When I click on trade ban in Discord, I get the warning shown in the screenshot. How can I fix this? I had configured "ban_role_ids" inside WTradingDiscord.json, I’m not sure if it’s related, but do you have any advice?
 

"an internal occurred: A Steam ID could not be located within 'trade_ban_confirm'."

image.png.c8e135d4e2ea88f67aa43cda72d1a66b.png


 

2m

Downloads

Total number of downloads.

9.3k

Customers

Total customers served.

136.1k

Files Sold

Total number of files sold.

2.9m

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.