forked from PsychoTea/Oxide.Ext.Discord
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Added hooks INVITE_CREATE and INVITE_DELETE: - hook Discord_InviteCreated(InviteCreated obj) - hook Discord_InviteDeleted(InviteDeleted obj) + Added new params to Guild object + Fixed emoji parsing error on load.
- Loading branch information
Showing
7 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace Oxide.Ext.Discord.DiscordObjects | ||
{ | ||
using System; | ||
using Oxide.Ext.Discord.REST; | ||
|
||
public class InviteCreated | ||
{ | ||
public string channel_id { get; set; } | ||
|
||
public string code { get; set; } | ||
|
||
public string created_at { get; set; } | ||
|
||
public string guild_id { get; set; } | ||
|
||
public User inviter { get; set; } | ||
|
||
public int? max_age { get; set; } | ||
|
||
public int? max_uses { get; set; } | ||
|
||
public bool? temporary { get; set; } | ||
|
||
public int? uses { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Oxide.Ext.Discord.DiscordObjects | ||
{ | ||
using System; | ||
using Oxide.Ext.Discord.REST; | ||
|
||
public class InviteDeleted | ||
{ | ||
public string channel_id { get; set; } | ||
|
||
public string guild_id { get; set; } | ||
|
||
public string code { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters