View Single Post
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 01-13-2017 , 06:16   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #12

Quote:
Originally Posted by T1MOXA View Post
I have an error.

[discord.smx] [OnRequestComplete] Bad Request! Error Code: [400]. Check your message, the API doesn't like it! Message: "{"attachments": [{"color": "#ff2222","title": "View on Sourcebans","title_link": "http://***/index.php?p=banlist&searchText=STEAM_1:1:***" ,"fields": [{"title": "Player","value": "T1MOXA ( STEAM_1:1:*** )","short": true},{"title": "Admin","value": "T1MOXA","short": true},{"title": "Ban Length","value": "1 min","short": true},{"title": "Reason","value": "1","short": true}]}]}"

Where in this query error ?
(I have my own alteration of sourcebans, maybe that's the reason)
Maybe you miss the /slack at the end of your webhook url in case you are using discord.
And if you are using your own sourcebans version the sorucecommsn/-bans modules can't work.
As already written on the main post the original sourcebans plugins don't have ban forwards, but if you link me the sourcebans code you are using I can add those forwards for you (Thats not much work).
__________________

Last edited by zipcore; 01-13-2017 at 06:22.
zipcore is offline