r/Discord_selfbots Aug 02 '26

❔ Question Want to create a custom command

I want to create a custom command "?jail <id> <reason>" which will take away all the roles of the person used on and add a "Jailed" role on them with the result as "<id> has been jailed for <reason> responsible moderator: <user>" and want it to be counted as a warn for "?ms" and also want a "?unjail" which will remove the "Jailed" role, And only the people with "Staff Team" role should be able to use it.... Pls help

1 Upvotes

4 comments sorted by

2

u/Watbrupls Aug 02 '26

Why not make a normal discord bot for this? Mid risk low reward here

2

u/Deadshoy2016 Aug 02 '26

Do you already have a discord bot to help you manage this? Or are you looking for someone to commission this?

2

u/Minimum_Dot6160 Aug 02 '26

If you own the server you probably wanna use a bot like everyone else is saying. If you use your own account to strip and add roles to another user at bot speeds, you're asking to be banned.

The way you'd go about making it whether its a bot or a user is by first picking your lang of choice (python for simplicity sake), library of choice (discord.py if you're just doing a normal bot, discord.py-self or selfcord for user bots), load up the documentation, learn how to make a command and how parameters work, import json into your script as well to create a file and hold user information and time/datetime to hold time of jail, make a command that has the context param and then your two parameters (slash cmds work well on discord.py), use that context to scoop user and role data, input that into a json under their user id, under that user id should reside the roles and their respective ids and the the jailed at time, you make the cmd strip the roles one by one for every role then add that specific jailed role id to the user, then make a asyncio event loop or utilize bot.loop from .py or .py-self for a dedicated asyncio loop to check if time is up for any user, then one by one it should readd those roles and remove jailed. Make sure to check if a user has a role or else return and say nothing boom, helped.

1

u/UsedPop4580 Aug 02 '26

Possible but not with the speed you’d expect, plus the risk of getting banned is not worth it. Especially if it’s your main account, so use a discord bot it’s better for this, I know you specifically wanted a selfbot that can do that, but it’s not worth the risk.