open.mp forum
[Library] Devi's Discord Library (dv_discord) - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] Devi's Discord Library (dv_discord) (/showthread.php?tid=1383)



Devi's Discord Library (dv_discord) - Dev86 - 2020-11-27

Devi's Discord Library

(dv_discord)


to be improved



RE: Devi's Discord Library (dv_discord) - Pinch - 2020-11-27

(2020-11-27, 06:58 AM)Dev86 Wrote: This library also makes the DCC_ prefix on the discord-connector natives optional, meaning you can use GetUserName instead of DCC_GetUserName.

Why in the world...you know that DCC_ prefix is there with a reason, right?


RE: Devi's Discord Library (dv_discord) - Josh - 2020-11-27

(2020-11-27, 06:58 AM)Dev86 Wrote: This library also makes the DCC_ prefix on the discord-connector natives optional, meaning you can use GetUserName instead of DCC_GetUserName.

What an odd choice, I recommend you remove that. "GetUserName" is such a common function that someone probably has in their script.

Your code is also wrong, you're using strfind, so if I do ban! it will be a valid command, when it shouldn't. It should be only at the start. Or alternatively, you should let the user specify.


RE: Devi's Discord Library (dv_discord) - TommyB - 2020-11-27

this is awful