BDFD Timeout Slash
A slash command to time out (mute) members in BDFD. Includes duration control, optional DM notification, admin & owner protection, and a detailed moderation embed with proof support.
Features
1. Timeout — Slash Command
Times out a member for a specified duration. Supports optional DM notification and proof image. Requires Moderate Members permission.
$nomention
$reply
$allowUserMentions[]
$defer
$onlyIf[$guildID!=;you cant use any commands in dms!]
$embedSuppressErrors[; Invaild duration! please use "h" for hours "m" for mins "d" for days;00eeff;]
$var[cross;<a:arivory_cross:1328466593776275587>]
$var[dot;<a:Ulquiorradot:1353719374069895219>]
$var[mod;<:Moderator:1327778832387670067>]
$var[victim;<:user:1327788834246627379>]
$var[Reason;<a:areason:1346268566252552213>]
$var[time;<a:aatimer:1327788139087003658>]
$var[dm;<:dm:1372322149439766588>]
$var[user;$message[user]]
$var[reason;$message[reason]]
$var[duration;$message[duration]]
$var[me;$authorID]
$var[proof;$message[proof]]
$async[goon]
$onlyPerms[moderatemembers; $var[cross] | You don't have **__Moderate members__** permission!]
$onlyBotPerms[moderatemembers; $var[cross] | I don't have **__Moderate Members__** Permission]
$onlyIf[$userExists[$findUser[$var[user]]]!=; User is not in this server]
$onlyIf[$var[user]!=$authorID; $var[cross] | You can't mute yourself]
$onlyIf[$var[user]!=$serverOwner; $var[cross] | You can't mute server owner!]
$onlyIf[$var[user]!=$botID; $var[cross] I don't wanna mute my self...]
$onlyIf[$isAdmin[$var[user]]==false; $var[cross] | I can't mute admins]
$onlyIf[$isTimedOut[$var[user]]==false; $var[cross] | <@$var[user]> is already muted!]
$if[$message[dm]!=]
$if[$message[dm]==true]
$if[$isUserDMEnabled[$var[user]]==true]
$try
$sendEmbedMessage[$dmChannelID[$var[user]];;You got muted in **__$serverName[$guildID]__**;;
$var[victim] **__Victim__** - [$nickname[$var[user]]\](https://discord.com/users/$var[user])
$var[mod] **__Moderator__** - [$nickname[$authorID]\](https://discord.com/users/$authorID)
$var[Reason] **__Reason__** - $if[$var[reason]==] no reason $else $var[reason] $endif
$var[time] **__Duration__** - $message[duration];00eeff;$username;$authorAvatar;$username[$var[user]];$userAvatar[$var[user]];$var[proof];;true;false]
$var[dm.sent?;Successfully DMed the user!]
$catch
$var[dm.sent?;Couldn't DM the user!]
$endtry
$else
$var[dm.sent?; User's DMs are disabled so i couldn't DM them]
$endif
$endif
$endif
$endasync
$await[goon]
$async[goon2]
$endasync
$await[goon2]
$authorIcon[$userAvatar[$var[user]]]
$author[SuccessFully muted!]
$description[
$var[victim] **__Victim__** - [$nickname[$var[user]]\](https://discord.com/users/$var[user])
$var[mod] **__Moderator__** - [$nickname[$var[me]]\](https://discord.com/users/$var[me])
$var[Reason] **__Reason__** - $if[$var[reason]==] no reason $else $var[reason] $endif
$var[time] **__Duration__** - $var[duration]
$var[dm] **__DM?__** - $var[dm.sent?]
$footerIcon[$authorAvatar]]
$color[#00eeff]
$timeout[$var[duration];$var[user]]
$footer[Executed by $displayName $addTimestamp]
Variables Needed
No stored variables required.
All values are handled at runtime via $var[].
Credits
If you repost or redistribute this, please give proper credits to the original creator.
Setup Notes
Duration Format
Use h for hours, m for minutes, d for days — e.g. 1h, 30m, 7d.
Custom Emojis
Replace the emoji IDs in the $var[cross], $var[mod], etc. lines with emojis from your own server.
DM Option
The dm slash option is optional. Pass true to send a DM to the timed-out user.