-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Multiple gateway connects are now possible - Server role methods added
- Loading branch information
Showing
20 changed files
with
502 additions
and
285 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
myBot = new discordBot(global.config.errorBotToken, global.config.errorApplicationId, true); | ||
|
||
// Create a simple slash command where the user types /ping | ||
var _testGuildCommand = new discordGuildCommand("ping", "Just a test.", DISCORD_COMMAND_TYPE.chatInput); | ||
|
||
//myBot.guildCommandCreate(global.config.serverId, _testGuildCommand, function(){ | ||
// show_debug_message(json_parse(async_load[? "result"])); | ||
//}); | ||
|
||
var _guildId = "1090453953482866738"; | ||
var _userId = "1101162577725227108" | ||
var _userId = "1101162577725227108"; | ||
var _channelId = "1113607940977463387" | ||
|
||
// Define the callback function to handle the response | ||
var _callback = function() { | ||
show_debug_message("The request responded!"); | ||
show_debug_message("Message with an attachment sent!"); | ||
}; | ||
|
||
// Call the method | ||
myBot.guildChannelsGet(_guildId, _callback); | ||
var _fileAttachment = new discordFileAttachment("C:/Users/madma/OneDrive/Desktop/Cockroach-05-1802025153.jpg", "cockroach.jpg", "A cockroach"); | ||
|
||
// Call the method | ||
myBot.messageEdit(_channelId, "1114011904147468400", "Editeadsfgsadddddd", _callback); |
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,20 @@ | ||
var _guildId = "1090453953482866738"; | ||
var _userId = "1101162577725227108"; | ||
var _channelId = "1113607940977463387" | ||
|
||
var _callback = function(_response) { | ||
var _roles = _response; | ||
|
||
// Process the roles data | ||
for (var i = 0; i < array_length(_roles); i++) { | ||
var _role = _roles[i]; | ||
var _roleId = _role.id; | ||
var _roleName = _role.name; | ||
|
||
show_debug_message("Role ID: " + _roleId); | ||
show_debug_message("Role Name: " + _roleName); | ||
} | ||
}; | ||
|
||
// Call the method | ||
myBot.guildRolesGet(_guildId, _callback); |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
requestCallbacks = []; | ||
botArray = []; | ||
global.lastMessageTest = -1; | ||
|
||
|
||
|
||
|
||
|
Empty file.
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
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
instance_create_depth(0, 0, 0, obj_discordController); | ||
instance_create_depth(0, 0, 0, obj_controller); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.