Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
discord-user-bots
Advanced tools
I library that allows you to use the full potential of Discords api to create good user bots.
Hello! This is a user bot library the allows
for a lot more things than Discord.js.
For example, this library allows you to access
to everything a legit client does:
like user notes, friend counts,
the defualt Discord tutorial,
and everything else.
This library is in a early state
and needs more work.
More functions will be added soon.
npm i discord-user-bots
Here's a small example of this library:
const Discord = require("discord-user-bots");
const client = new Discord.Client("Token goes here.");
client.on.ready = function () {
console.log("Client online!");
};
client.on.message_create = function (message) {
console.log(message);
};
// The channel ID
// v
client.fetchmessages(100, "794326789480120374");
// ^
// The amount of messages you want
// The guild ID
// v
client.getguild("794326789480120374");
// The server invite
// v
client.join_guild("invite-code", false);
// ^
// Make this second parameter true if you want to use a http link, it's false by default
// (Deprecated)
// The server invite
// v
client.get_invite_info("invite-code", false);
// ^
// Make this second parameter true if you want to use an https link, it's false by default
// The guild ID
// v
client.leave_guild("794326789480120374");
// The channel ID
// v
client.send("Example message", "794326789480120374");
// ^
// The message you want to send
// Target message ID The channel ID
// v v
client.reply("Example message", "794339629553156116", "794326789480120374");
// ^
// The message you want to send
// The channel ID
// v
client.delete_message("794339629553156116", "794329000897806387");
// ^
// Target message ID
// The channel ID
// v
client.type("794326789480120374");
cleint.stopType();
client.create_group(["person-id", "you can have up to 10", "(Including you)"]);
// ^
// The people to be in the group when it's made
client.leave_group("785986028955500596");
// ^
// The group ID to leave
// Person ID to be removed
// v
client.remove_person_from_group("person-id", "785986028955500596");
// ^
// Group ID to have someone removed from
// The name
// v
client.rename_group("Example group name", "785986028955500596");
// ^
// The group ID to be renamed
// Name of the server
// v
client.create_server("Example server name", "2TffvPucqHkN");
// ^
// The template of the server, it's set to the defualt
// server template when not set by you
// The message ID to spawn the thread from Name of the thread
// v v
client.create_thread_from_message("811442648677875722", "753267478943105024", "name", 1440);
// ^ ^
// The channel ID the message is in ^
// The amount of time it takes for Discord to auto archive the thread
// The amount of time it takes for Discord to auto archive the thread
// The channel ID to make the thread in v
// v v
client.create_thread("888825512510779414", "name", 1440);
// ^
// Name of the thread
// The ID of the thread to delete
// v
client.delete_thread("888825512510779414");
Keep in mind that all of these functions return Promises when they are finished with all the information about the action you just made execpt for type, stopType, delete_message, and leave_guild.
client.on = {
discord_disconnect: function () {},
gateway: function () {},
heartbeat_sent: function () {},
heartbeat_received: function () {},
ready: function () {},
voice_server_update: function (message) {},
user_update: function (message) {},
application_command_create: function (message) {},
application_command_update: function (message) {},
application_command_delete: function (message) {},
interaction_create: function (message) {},
guild_create: function (message) {},
guild_delete: function (message) {},
guild_role_create: function (message) {},
guild_role_update: function (message) {},
guild_role_delete: function (message) {},
thread_create: function (message) {},
thread_update: function (message) {},
thread_delete: function (message) {},
thread_list_sync: function (message) {},
thread_member_update: function (message) {},
thread_members_update: function (message) {},
channel_create: function (message) {},
channel_update: function (message) {},
channel_delete: function (message) {},
channel_pins_update: function (message) {},
guild_member_add: function (message) {},
guild_member_update: function (message) {},
guild_member_remove: function (message) {},
guild_ban_add: function (message) {},
guild_ban_remove: function (message) {},
guild_emojis_update: function (message) {},
guild_stickers_update: function (message) {},
guild_integrations_update: function (message) {},
guild_webhooks_update: function (message) {},
invite_create: function (message) {},
invite_delete: function (message) {},
voice_state_update: function (message) {},
presence_update: function (message) {},
message_create: function (message) {},
message_update: function (message) {},
message_delete: function (message) {},
message_delete_bulk: function (message) {},
message_reaction_add: function (message) {},
message_reaction_remove: function (message) {},
message_reaction_remove_all: function (message) {},
message_reaction_remove_emoji: function (message) {},
typing_start: function (message) {},
// Custom made ones
embed_sent: function (message) {},
message_edit: function (message) {},
};
My library focuses on allowing you to access
absolutely everthing a normal Discord client can.
This means tons and tons of properties defining your client.
Here are some of them:
this.user_settings = user.user_settings; // An object full of properties of settings
this.user = user.user; // An object full of properties about the user like username etc
this.tutorial = user.tutorial; // A property
this.session_id = user.session_id; // String of random characters
this.notes = user.notes; // An object that contains all the notes the user has on other people
this.guild_join_requests = user.guild_join_requests; // An array
this.user_guild_settings = user.user_guild_settings; // An array of Objects
this.relationships = user.relationships; // An array of Objects
this.read_state = user.read_state; // An array of Objects
this.private_channels = user.private_channels; // An array of Objects
this.presences = user.presences; // An array of Objects
this.guilds = user.guilds; // An array of Objects
this.guild_experiments = user.guild_experiments; // An array containing arrays
this.geo_ordered_rtc_regions = user.geo_ordered_rtc_regions; // An array of strings
this.friend_suggestion_count = user.friend_suggestion_count; // An integer
this.experiments = user.experiments; // An array containing arrays
this.country_code = user.country_code; // A string
this.consents = user.consents; // An Object containing objects
this.connected_accounts = user.connected_accounts; // An array of Objects
this.analytics_token = user.analytics_token; // A string
this._trace = user._trace; // Stringified json
this.user_settings = {
timezone_offset: timezone - offset - goes - here, // (int)
theme: "dark",
stream_notifications_enabled: true,
status: "invisible",
show_current_game: true,
restricted_guilds: [],
render_reactions: true,
render_embeds: true,
native_phone_integration_enabled: true,
message_display_compact: false,
locale: "locale-goes-here",
inline_embed_media: true,
inline_attachment_media: true,
guild_positions: [Array],
guild_folders: [Array],
gif_auto_play: true,
friend_source_flags: [Object],
explicit_content_filter: 2,
enable_tts_command: true,
disable_games_tab: false,
developer_mode: true,
detect_platform_accounts: true,
default_guilds_restricted: false,
custom_status: null,
convert_emoticons: true,
contact_sync_enabled: false,
animate_stickers: 0,
animate_emoji: true,
allow_accessibility_detection: false,
afk_timeout: 600,
};
this.user_guild_settings = [[Object]];
this.user = {
verified: true,
username: "Sopur",
premium: false,
phone: null,
nsfw_allowed: true,
mobile: true,
mfa_enabled: false,
id: "id-goes-here",
flags: 0,
email: "email-goes-here",
discriminator: "discriminator-goes-here",
desktop: true,
avatar: "avatar-goes-here",
};
this.tutorial = null;
this.session_id = "session_id-goes-here";
this.relationships = [[Object]];
this.read_state = [[Object]];
this.private_channels = [[Object]];
this.presences = [[Object]];
this.notes = {
"id-goes-here": "note-goes-here",
};
this.guilds = [[Object]];
this.guild_join_requests = [];
this.guild_experiments = [[Array]];
this.geo_ordered_rtc_regions = ["geo", "ordered", "rtc", "regions", "go", "here"];
this.friend_suggestion_count = 0;
this.experiments = [[Array]];
this.country_code = "country-goes-here";
this.consents = { personalization: [Object] };
this.connected_accounts = [[Object]];
this.analytics_token = "token-goes-here";
this._trace = ["stringified-json"];
- Added all event listeners
- added thread functions
- Fixed bug that stops you from viewing message content
FAQs
A library that allows you to use the full potential of Discords API to create and operate powerful user bots
The npm package discord-user-bots receives a total of 13 weekly downloads. As such, discord-user-bots popularity was classified as not popular.
We found that discord-user-bots demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.