Skip to content

Commit

Permalink
Update discord_utilities.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruze03 authored Apr 23, 2021
1 parent 72ee0f1 commit fbbfdd4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripting/include/discord_utilities.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
#endif
#define _discord_utilities_included

/**
* Called after a client's data has been retrieved from database.
*
* @param client Client index loaded client.
* @noreturn
*/
forward void DU_OnClientLoaded(int client);

/**
* Called after a client has verfied his discord account.
*
Expand Down Expand Up @@ -33,6 +41,16 @@ forward void DU_OnAccountRevoked(int client, const char[] userid);
*/
forward void DU_OnCheckedAccounts(const char[] bottoken, const char[] guildid, const char[] tablename);


/**
* Called before a blocked command being used by client.
*
* @param client Player who used command.
* @param command Command used.
* @return Continue to let him use, Handled to let plugin behave normally, Stop to stop him executing command manually.
*/
forward Action DU_OnBlockedCommandUse(int client, char[] command);

/**
* Refreshing every client online in server. Can be used for grasping steam avatar of client and re-checking client in database.
*
Expand Down Expand Up @@ -89,6 +107,15 @@ native void DU_AddRole(int client, char[] roleid);
*/
native void DU_DeleteRole(int client, char[] roleid);

/**
* Checks role from client according to roleid
* @param client Client index to delete role from.
* @param roleid String containing roleid.
* @param maxsize Max size of string.
* @noreturn
*/
native void DU_CheckRole(int client, char[] roleid);

public SharedPlugin __pl_discord_utilities =
{
name = "DiscordUtilities",
Expand Down

0 comments on commit fbbfdd4

Please sign in to comment.