DiscordTools
A package to simulate user experience in Discord programatically using Selenium Web-Scraping.
Install / Use
/learn @TanmayArya-1p/DiscordToolsREADME
Note : DISCORD-TOOLS BREAKS DISCORD TOS AS A SELF-BOT AND CAN LEAD TO A POTENTIAL BAN IF ABUSED. USE FOR ONLY EXPERIMENTAL PURPOSES AT YOUR OWN RISK.
Installation
pip install Discord-Tools
Initializing The Discord Tools Class
from Discord_Tools.main import DT
user = DT(Usrnm,Pswrd)
After initialising, an instance of the Selenium Chrome Window will open.
Often,Discord prompts the user with a captcha(HCaptcha) or will ask the user to confirm new login location.


If Such interruption is faced , DiscordTools will wait until the interruption is no longer seen and prompts when faced with one in the terminal.

Attributes of DT(Usrnm,Pswrd)
.usrnm
Returns Username of User used to initialize class.
.pswrd
Returns Password of User used to initialize class
Methods of DT(Usrnm,Pswrd)
.GetGuilds()
Returns List of Servers the User is a part of.
Example Output :
["server1","server2"]
.GetMentionsDict()
Returns a Dictionary with the number of unread mentions in each Guild.
Example Output :
{"server1" : 1 , "server2" : 2}
.GetGuildMentions(guild)
args: guild - Guild Name(String)
Returns the number of unread mentions in guild.
.GetDMsInView()
Returns a list of title of DMs in View. (Only Works with DMs in View beacuase Discord works with lazy loading)
.NavigateGuild(guild)
args: guild - Guild Name(String)
Navigates to guild in the Selenium Chrome instance.
.NavigateDM(dm)
args: dm - DM Name(String)
Navigates to DM in the Selenium Chrome instance.
.NavigateHome()
Navigates to Discord Home.
.GetChannels(guild)
args: guild - Guild Name(String)
Returns a List of Channels in guild.
Example Output :
["chatroom","media","memes"]
.NavigateChannel(guild,chnl)
args: guild - Guild Name(String) , chnl - Channel Name(String)
Navigates to chnl in guild in the Selenium Chrome Instance.
chnl can be a substring of a channel name due to unicode restrictions.
.NavigateChannelByIndex(guild,ind)
args: guild - Guild Name(String) , ind - Channel Index(Integer)
Navigates to the channel by index(ind) in guild.
.Chat(msg)
args: msg - Message to Chat(String)
Sends Keys of msg to the Input Field of the DM or a channel of a guild
.GetMessagesInView()
Returns a List of of Tuples of Messages in the open channel or DM.
Structure of Tuple:
(timestamp,author,msg)
.GetLastMessage()
Returns a Tuple of the last message sent in a channel or DM in sthe structure mentioned above.
.SpamGuild(guild,chnl_indx,interval , spam ,itr)
args: guild - Guild Name(String), chnl_indx - Index of Channel(Integer), interval - Interval between each message in seconds(Float), spam - Message to Spam(String), itr - No of Times to Spam(Integer)
Spams spam in the given chnl_indx of guild - Spams itr times
.SpamDM(dm_title,interval,spam,itr)
args: dm_title - DM Name(String), interval - Interval between each message in seconds(Float), spam - Message to Spam(String), itr - No of Times to Spam(Integer)
Spams spam in the given DM by dm_title - Spams itr times
Other Methods That Can Be Imported
DMStartVoice(DM_title)
Starts Voice Recognition Messaging in the Direct Message of DM_title
Example
from Discord_Tools.main import DMStartVoice
DMStartVoice("foo")
The User Must Follow their message content after chat
For Instance,
Saying chat hello after Calling the Method will send hello in the mentioned DM_title
GuildStartVoice(guild,chnl_indx)
Starts Voice Recognition Messaging in the guild within the channel of index chnl_indx.
Example
from Discord_Tools.main import GuildStartVoice
GuildStartVoice("bar" , 0)
The User Must Follow their message content after chat
For Instance,
Saying chat hello after Calling the Method will send hello in the mentioned channel of chnl_indx
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
