Skip to content

Guild API

MasterGeneral156 edited this page Apr 6, 2017 · 2 revisions

The Guild API

The Guild API is very useful when you wish to do actions pertaining to guilds.

Available Functions

GuildFetchInfo();
GuildAddNotification();

GuildFetchInfo();

GuildFetchInfo(); is a function used to return a single data row, or all the data rows, pertaining to the specified guild. This function takes two variables, one required, one optional.
$api->UserHasCurrency($var1,$var2);
Variable #1 - Integer. Specifies the guild to return data from.
Variable #2 - Text. Field to select specifically. Optional. If omitted, will return all the rows.

This function returns the specified data on success, and false if it was unable to.

GuildAddNotification();

GuildAddNotification(); is a function used to add a notification for the guild specified. This function takes two variables.
$api->UserHasCurrency($var1,$var2);
Variable #1 - Integer. Specifies the guild to return data from.
Variable #2 - Text. Notification text.

This function returns true if the notification was added, false if it wasn't.

Clone this wiki locally