<Your question or feedback about the GitHub Code Search and Code View products> #68920
Unanswered
Communityteam00
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
General
Body
Hello I want to add my code to make my bot on discord how I should make my code is here.
},{
name: "claim",
type: "interaction",
prototype: "button",
code:
$setChannelTopic[$channelID;This ticket has been claimed by <@$authorID>] $modifyChannelPerms[$guildID;$channelID;-sendmessage] $modifyChannelPerms[$authorID;$channelID;+sendmessage] $modifyChannelPerms[$advancedTextSplit[$getChannelVar[tick];-;2];$channelID;+sendmessage] $interactionReply[;{newEmbed:{title:Ticket Claimed}{description:This ticket has been claimed by <@$authorID>}{color:BLUE}}] $onlyif[$channelTopic==none;{ "content" : " ", "embeds" : "{newEmbed:{title:Error}{description:$channelTopic}{color:RED}}", "ephemeral" : true, "options" : { "interaction" : true } }] $onlyif[$getUserVar[tick]!=$channelID;{ "content" : " ", "embeds" : "{newEmbed:{title:Error}{description:You can't claim your own ticket}{color:RED}}", "ephemeral" : true, "options" : { "interaction" : true } }]
},{
name: "tick",
type: "interaction",
prototype: "button",
code: `$interactionModal[Hello there!;tick;
{actionRow:
{textInput:Why you want to make a ticket?:1:Reason:yes}]
},{
name: "tick",
type: "interaction",
prototype: "modal",
$if: "v4",
code: `$modifyChannelPerms[$getServerVar[tick_r];$get[id];+viewchannel]
$onlyif[$roleExists[$getServerVar[tick_r];$guildID]==true;]
$modifyChannelPerms[$authorID;$get[id];+viewchannel]
$modifyChannelPerms[$guildID;$get[id];-viewchannel]
}]
Beta Was this translation helpful? Give feedback.
All reactions