[{"data":1,"prerenderedAt":997},["ShallowReactive",2],{"docs.navigation":3,"docs.content.discord-channel":317,"docs.section.channels":979,"docs.prevnext.discord-channel":994},[4,46,100,137,171,232,239,258,275,292],{"id":5,"title":6,"position":7,"children":8},32,"Introduction",0,[9,13,17,22,27,32,36,41],{"id":10,"title":6,"slug":11,"position":7,"directory":12},34,"getting-started","introduction",{"id":14,"title":15,"slug":16,"position":7,"directory":12},35,"Quickstart guide","quickstart-guide",{"id":18,"title":19,"slug":20,"position":21,"directory":12},37,"What is a bot?","what-is-a-bot",3,{"id":23,"title":24,"slug":25,"position":26,"directory":12},39,"What is a data source?","what-is-a-data-source",4,{"id":28,"title":29,"slug":30,"position":31,"directory":12},38,"What is a channel?","what-is-a-channel",6,{"id":33,"title":34,"slug":35,"position":31,"directory":12},40,"What is a power-up?","what-is-a-power-up",{"id":37,"title":38,"slug":39,"position":40,"directory":12},33,"FAQ","faq",7,{"id":42,"title":43,"slug":44,"position":45,"directory":12},36,"Troubleshooting","troubleshooting",8,{"id":7,"title":47,"position":48,"children":49},"Bots",1,[50,54,58,62,66,70,74,77,81,84,87,92,96],{"id":21,"title":51,"slug":52,"position":7,"directory":53},"Bot advanced settings","bot-advanced-settings","bots",{"id":55,"title":56,"slug":57,"position":48,"directory":53},10,"Prompt engineering tips","prompt-engineering-tips",{"id":59,"title":60,"slug":61,"position":59,"directory":53},2,"Available models","available-models",{"id":63,"title":64,"slug":65,"position":21,"directory":53},13,"Widget customisation","widget-customisation",{"id":67,"title":68,"slug":69,"position":26,"directory":53},12,"Webhooks","webhooks",{"id":71,"title":72,"slug":73,"position":71,"directory":53},5,"Custom domains","custom-domains",{"id":26,"title":75,"slug":76,"position":31,"directory":53},"Bot testing","bot-testing",{"id":78,"title":79,"slug":80,"position":31,"directory":53},11,"SDK","sdk",{"id":40,"title":82,"slug":83,"position":40,"directory":53},"Human takeover","human-takeover",{"id":31,"title":85,"slug":86,"position":55,"directory":53},"Duplicating bots","duplicating-bots",{"id":88,"title":89,"slug":90,"position":91,"directory":53},9,"My Chats","my-chats",15,{"id":48,"title":93,"slug":94,"position":95,"directory":53},"Analytics","analytics",16,{"id":45,"title":97,"slug":98,"position":99,"directory":53},"Lead capture","lead-capture",20,{"id":101,"title":102,"position":59,"children":103},23,"Data sources",[104,109,113,117,121,125,129,133],{"id":105,"title":106,"slug":107,"position":7,"directory":108},25,"File","file-data-source","data-sources",{"id":110,"title":111,"slug":112,"position":7,"directory":108},28,"Notion","notion-data-source",{"id":114,"title":115,"slug":116,"position":59,"directory":108},30,"Website","website-data-source",{"id":118,"title":119,"slug":120,"position":21,"directory":108},31,"YouTube","youtube-data-source",{"id":122,"title":123,"slug":124,"position":26,"directory":108},29,"RSS","rss-data-source",{"id":126,"title":127,"slug":128,"position":71,"directory":108},27,"Manual","manual-data-source",{"id":130,"title":131,"slug":132,"position":88,"directory":108},24,"Data source best practices","data-source-best-practices",{"id":134,"title":135,"slug":136,"position":55,"directory":108},26,"Keeping your bot up to date","keeping-your-bot-up-to-date",{"id":138,"title":139,"position":26,"children":140},14,"Channels",[141,146,150,154,157,160,164,167],{"id":142,"title":143,"slug":144,"position":7,"directory":145},21,"Web","web-channel","channels",{"id":147,"title":148,"slug":149,"position":48,"directory":145},18,"Slack","slack-bot-channel",{"id":151,"title":152,"slug":153,"position":48,"directory":145},19,"Slack (V1 Deprecated)","slack-channel",{"id":95,"title":155,"slug":156,"position":59,"directory":145},"Discord","discord-channel",{"id":99,"title":158,"slug":159,"position":21,"directory":145},"Telegram","telegram-channel",{"id":161,"title":162,"slug":163,"position":26,"directory":145},22,"WhatsApp","whatsapp-channel",{"id":91,"title":165,"slug":166,"position":71,"directory":145},"API","api-channel",{"id":168,"title":169,"slug":170,"position":45,"directory":145},17,"Email","email-channel",{"id":172,"title":173,"position":26,"children":174},47,"Power-ups",[175,180,184,188,192,196,200,204,208,212,216,220,224,228],{"id":176,"title":177,"slug":178,"position":7,"directory":179},49,"Browse Webpage Power-up","browse-webpage-power-up","power-ups",{"id":181,"title":182,"slug":183,"position":7,"directory":179},53,"Google Search Power-up","google-search-power-up",{"id":185,"title":186,"slug":187,"position":7,"directory":179},55,"Power-up basics","power-up-basics",{"id":189,"title":190,"slug":191,"position":7,"directory":179},60,"Use API Power-up","use-api-power-up",{"id":193,"title":194,"slug":195,"position":48,"directory":179},61,"Zapier Power-up","zapier-power-up",{"id":197,"title":198,"slug":199,"position":59,"directory":179},54,"Notion Power-ups","notion-power-ups",{"id":201,"title":202,"slug":203,"position":21,"directory":179},59,"Talk to a Human Power-up","talk-to-a-human",{"id":205,"title":206,"slug":207,"position":26,"directory":179},52,"Email Power-ups","email-power-up",{"id":209,"title":210,"slug":211,"position":71,"directory":179},57,"Send an email","send-email-power-up",{"id":213,"title":214,"slug":215,"position":55,"directory":179},58,"Slack Power-ups","slack-power-ups",{"id":217,"title":218,"slug":219,"position":78,"directory":179},50,"Discord Power-ups","discord-power-ups",{"id":221,"title":222,"slug":223,"position":67,"directory":179},48,"Bot-to-bot power-up","bot-to-bot-power-up",{"id":225,"title":226,"slug":227,"position":63,"directory":179},51,"Display power-ups","display-power-ups",{"id":229,"title":230,"slug":231,"position":138,"directory":179},56,"Power-up display modes","power-up-display-modes",{"id":233,"title":234,"position":71,"children":235},62,"Tasks",[236],{"id":237,"title":234,"slug":238,"position":7,"directory":238},63,"tasks",{"id":240,"title":241,"position":31,"children":242},64,"Teams",[243,246,250,254],{"id":244,"title":241,"slug":245,"position":7,"directory":245},65,"teams",{"id":247,"title":248,"slug":249,"position":48,"directory":245},66,"Inviting team members","teams-inviting",{"id":251,"title":252,"slug":253,"position":59,"directory":245},67,"Managing team members","teams-member-roles",{"id":255,"title":256,"slug":257,"position":21,"directory":245},68,"Transferring bots","teams-transferring-bots",{"id":259,"title":260,"position":31,"children":261},73,"Use cases",[262,267,271],{"id":263,"title":264,"slug":265,"position":7,"directory":266},76,"Build a support bot for your website","support-bot","use-cases",{"id":268,"title":269,"slug":270,"position":48,"directory":266},74,"Build an internal knowledge bot for your team","internal-knowledge-bot",{"id":272,"title":273,"slug":274,"position":59,"directory":266},75,"Build a lead capture bot for your website","lead-capture-bot",{"id":276,"title":277,"position":40,"children":278},69,"Usage and billing",[279,284,288],{"id":280,"title":281,"slug":282,"position":7,"directory":283},70,"How does billing work?","how-does-billing-work","usage-and-billing",{"id":285,"title":286,"slug":287,"position":7,"directory":283},72,"What are storage tokens?","what-are-storage-tokens",{"id":289,"title":290,"slug":291,"position":21,"directory":283},71,"What are message tokens?","what-are-message-tokens",{"id":293,"title":294,"position":45,"children":295},41,"Plans",[296,301,305,309,313],{"id":297,"title":298,"slug":299,"position":7,"directory":300},44,"Free","free-plan","plans",{"id":302,"title":303,"slug":304,"position":48,"directory":300},42,"Basic","basic-plan",{"id":306,"title":307,"slug":308,"position":59,"directory":300},46,"Standard","standard-plan",{"id":310,"title":311,"slug":312,"position":21,"directory":300},45,"Pro","pro-plan",{"id":314,"title":315,"slug":316,"position":26,"directory":300},43,"Enterprise","enterprise-plan",{"id":318,"title":155,"body":319,"description":970,"extension":971,"longTitle":972,"meta":973,"navigation":974,"path":975,"position":59,"seo":976,"stem":977,"__hash__":978},"docs\u002Fdocs\u002Fchannels\u002Fdiscord-channel.md",{"type":320,"value":321,"toc":950},"minimark",[322,329,332,367,372,375,379,383,386,406,413,420,424,431,434,449,455,460,466,471,477,481,486,492,518,524,529,535,540,546,551,556,561,567,572,577,582,588,593,598,637,645,650,662,668,673,678,683,689,694,700,705,711,716,720,731,737,742,748,753,759,762,768,772,777,789,792,798,802,805,812,818,826,830,833,865,869,872,876,879,881,885,894,898,901,910,914,917,921,924],[323,324,325],"callout",{},[326,327,328],"p",{},"The Discord channel allows you to interact with your bot right in Discord! Use it to create bots for your community, your support server, or whatever else you can think of.",[326,330,331],{},"By enabling the Discord channel you can bring a powerful AI assistant into any Discord server. Depending on the transport you choose, your bot can:",[333,334,335,344,351,358,364],"ul",{},[336,337,338,339,343],"li",{},"Answer questions via a configurable ",[340,341,342],"strong",{},"slash command"," (both Gateway and Legacy).",[336,345,346,347,350],{},"Respond to ",[340,348,349],{},"@mentions"," in any channel it has access to (Gateway only).",[336,352,353,354,357],{},"Reply to ",[340,355,356],{},"direct messages"," (Gateway only).",[336,359,360,361,357],{},"Maintain conversation context across ",[340,362,363],{},"threads",[336,365,366],{},"When @mentioned in a channel, read the last few messages so it can answer follow-up questions about what was said (Gateway only).",[368,369,371],"h2",{"id":370},"discord-quick-start","Discord quick start",[326,373,374],{},"If you want to get set up with Discord quickly, check out the video below:",[376,377],"youtube",{"id":378},"DCBzxgWjyJk",[368,380,382],{"id":381},"choosing-a-transport","Choosing a transport",[326,384,385],{},"Chat Thing supports two transports for connecting your bot to Discord. You'll pick one at the top of the channel settings page before configuring credentials.",[333,387,388,400],{},[336,389,390,393,394,396,397,399],{},[340,391,392],{},"Gateway (recommended)"," - Maintains a persistent connection to Discord. Supports slash commands, ",[340,395,349],{},", and ",[340,398,356],{},". New channels default to this transport.",[336,401,402,405],{},[340,403,404],{},"Legacy"," - Uses Discord's interactions HTTP endpoint. Supports slash commands only. Pick this if you only want slash command behaviour and don't want to enable additional Discord intents.",[326,407,408,409,412],{},"You can switch transport at any time from the channel settings. The ",[340,410,411],{},"Interactions endpoint URL"," changes when you switch, so you'll need to re-paste it into the Discord developer portal.",[326,414,415],{},[416,417],"img",{"alt":418,"src":419},"Discord transport selector","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777999783\u002Fdocs\u002Fdiscord-transport-selector.png",[368,421,423],{"id":422},"creating-a-discord-bot","Creating a Discord bot",[323,425,428],{"type":426,"title":427},"warning","Before you start",[326,429,430],{},"The Discord integration is only available on Standard, Pro and Enterprise plans.",[326,432,433],{},"Before you can connect Chat Thing to Discord you need to create a Discord bot. Creating a bot is easy and it allows you to customise how it appears on your server.",[435,436,437,446],"ol",{},[336,438,439,440],{},"First go here: ",[441,442,443],"a",{"href":443,"rel":444},"https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications",[445],"nofollow",[336,447,448],{},"Click the new application button in the top right.",[326,450,451],{},[416,452],{"alt":453,"src":454},"Xnapper-2023-06-29-13.26.25.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688046815\u002FXnapper_2023_06_29_13_26_25_71d224f363.png",[435,456,457],{"start":21},[336,458,459],{},"Give your application a name and click the \"Create\" button.",[326,461,462],{},[416,463],{"alt":464,"src":465},"Xnapper-2023-06-29-14.57.20.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688047072\u002FXnapper_2023_06_29_14_57_20_a7cc7c4ef0.png",[435,467,468],{"start":26},[336,469,470],{},"Your bot will be created and you will be redirected to the bot admin page. Note the application ID - you will need this in the next step.",[326,472,473],{},[416,474],{"alt":475,"src":476},"Xnapper-2023-06-29-15.00.22.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688047268\u002FXnapper_2023_06_29_15_00_22_946536e39e.png",[368,478,480],{"id":479},"connecting-your-bot-to-discord","Connecting your bot to Discord",[435,482,483],{},[336,484,485],{},"From your bot dashboard, go to the Channels tab and enable the Discord channel by clicking its toggle switch.",[326,487,488],{},[416,489],{"alt":490,"src":491},"Discord channel toggle","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771833\u002Fdocs\u002Fdiscord-channel-toggle.png",[435,493,494,515],{"start":59},[336,495,496,497,500,501,503,504,506,507,510,511,514],{},"At the top of the settings page you'll see a ",[340,498,499],{},"Discord transport"," selector with two options: ",[340,502,392],{}," and ",[340,505,404],{},". New channels default to ",[340,508,509],{},"Gateway",", so most users won't need to change anything - but pick the transport you want before continuing. See ",[441,512,382],{"href":513},"#choosing-a-transport"," above if you're not sure.",[336,516,517],{},"In the settings page that appears, paste your bot's application\u002Fclient ID into the field.",[326,519,520],{},[416,521],{"alt":522,"src":523},"Discord client ID field","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771834\u002Fdocs\u002Fdiscord-client-id.png",[435,525,526],{"start":26},[336,527,528],{},"After entering your client ID you will see a number of other settings appear. Before your bot can be connected, you will need to find three more pieces of information from the Discord bot admin: client secret, bot public key, and bot token. You can use the links in the settings to help you find these, or keep reading and we will show you how.",[326,530,531],{},[416,532],{"alt":533,"src":534},"Discord expanded settings","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771836\u002Fdocs\u002Fdiscord-credentials.png",[435,536,537],{"start":71},[336,538,539],{},"First, add your Discord bot client secret. You will need to get this from the \"OAuth2\" section of the Discord bot admin. When you are on the page, click the \"Reset secret\" button to display the secret so you can copy it.",[326,541,542],{},[416,543],{"alt":544,"src":545},"Xnapper-2023-06-29-15.11.55.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688048036\u002FXnapper_2023_06_29_15_11_55_fe1d1503e6.png",[435,547,548],{"start":31},[336,549,550],{},"Paste this back into the client secret field in Chat Thing.",[326,552,553],{},[416,554],{"alt":555,"src":534},"Discord credentials section",[435,557,558],{"start":40},[336,559,560],{},"Next you need to find the bot public key. This can be found on the general information page of the Discord bot admin.",[326,562,563],{},[416,564],{"alt":565,"src":566},"Xnapper-2023-06-29-15.24.45.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688048780\u002FXnapper_2023_06_29_15_24_45_af6cb54dc8.png",[435,568,569],{"start":45},[336,570,571],{},"Copy the key and add it into the \"Bot public key\" field in the Chat Thing Discord settings.",[326,573,574],{},[416,575],{"alt":576,"src":534},"Discord bot public key field",[435,578,579],{"start":88},[336,580,581],{},"Finally, you need the bot token from the Discord bot admin. This can be found in the \"Bot\" section. Once there, click the \"Reset token\" button to reveal the token so you can copy it.",[326,583,584],{},[416,585],{"alt":586,"src":587},"Xnapper-2023-06-29-15.25.16.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688048778\u002FXnapper_2023_06_29_15_25_16_7e19a9643c.png",[435,589,590],{"start":55},[336,591,592],{},"Paste it into the \"Bot token\" field in the Discord settings.",[326,594,595],{},[416,596],{"alt":597,"src":534},"Discord bot token field",[323,599,600,605,615],{"type":426},[326,601,602],{},[340,603,604],{},"Gateway transport only",[326,606,607,608,610,611,614],{},"If you've chosen the ",[340,609,509],{}," transport, you must enable the ",[340,612,613],{},"Message Content Intent"," for your bot. Without this, the bot can't see @mentions or DM content and saving the channel settings will fail.",[435,616,617,624,631],{},[336,618,619,620,623],{},"Go to the ",[340,621,622],{},"Bot"," section of your Discord application.",[336,625,626,627,630],{},"Scroll to ",[340,628,629],{},"Privileged Gateway Intents",".",[336,632,633,634,636],{},"Toggle ",[340,635,613],{}," on and save.",[435,638,639],{"start":78},[336,640,641,642],{},"Go back to the Chat Thing Discord settings and click the \"Update settings\" button. ",[340,643,644],{},"It's important you do this before progressing to the next steps!",[326,646,647],{},[416,648],{"alt":649,"src":534},"Discord save settings",[435,651,652],{"start":67},[336,653,654,655,658,659,661],{},"Next we need to add two pieces of data back into the Discord bot admin: the ",[340,656,657],{},"OAuth2 redirect URL"," and the ",[340,660,411],{},". You can use the links above these fields in the Chat Thing Discord settings to take you to the correct areas on Discord.",[326,663,664],{},[416,665],{"alt":666,"src":667},"Discord integration URLs","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771837\u002Fdocs\u002Fdiscord-integration-urls.png",[435,669,670],{"start":63},[336,671,672],{},"Copy the OAuth2 redirect URL from the Chat Thing Discord settings.",[326,674,675],{},[416,676],{"alt":677,"src":667},"Discord OAuth2 redirect URL",[435,679,680],{"start":138},[336,681,682],{},"Go to the Discord admin OAuth2 page and click the \"Add redirect\" button.",[326,684,685],{},[416,686],{"alt":687,"src":688},"Xnapper-2023-06-29-15.33.55.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049387\u002FXnapper_2023_06_29_15_33_55_b5ffce5624.png",[435,690,691],{"start":91},[336,692,693],{},"Paste in the redirect URL, and then click the \"Save changes\" button that appears at the bottom of the page.",[326,695,696],{},[416,697],{"alt":698,"src":699},"Xnapper-2023-06-29-15.34.20.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049385\u002FXnapper_2023_06_29_15_34_20_51c2cbd05a.png",[435,701,702],{"start":95},[336,703,704],{},"Go back to the Chat Thing Discord settings and copy the Interactions endpoint URL. Go to the general information section of the Discord bot admin and paste the URL into the \"Interactions endpoint URL\" field. The exact URL differs depending on the transport you chose; copy whatever Chat Thing shows you.",[326,706,707],{},[416,708],{"alt":709,"src":710},"Xnapper-2023-06-29-15.34.34.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049387\u002FXnapper_2023_06_29_15_34_34_efc83fbca1.png",[435,712,713],{"start":168},[336,714,715],{},"Click the \"Save changes\" button that appears at the bottom of the page.",[326,717,718],{},[416,719],{"alt":698,"src":699},[435,721,722],{"start":147},[336,723,724,725,727,728,730],{},"Finally, click the \"Add to Discord\" button to choose a Discord server to install your bot. If you're using the ",[340,726,509],{}," transport, the install link will request slightly broader permissions because the bot needs to read channel messages to respond to @mentions; ",[340,729,404],{}," bots only request permission to send messages.",[326,732,733],{},[416,734],{"alt":735,"src":736},"Add to Discord button","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771838\u002Fdocs\u002Fdiscord-add-to-discord.png",[435,738,739],{"start":151},[336,740,741],{},"Then click \"Continue\".",[326,743,744],{},[416,745],{"alt":746,"src":747},"Xnapper-2023-06-29-14.23.23.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049866\u002FXnapper_2023_06_29_14_23_23_38fd6d9c06.png",[435,749,750],{"start":99},[336,751,752],{},"Authorise the bot and you're all set!",[326,754,755],{},[416,756],{"alt":757,"src":758},"Xnapper-2023-06-29-14.23.14.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049865\u002FXnapper_2023_06_29_14_23_14_aa3a0113bd.png",[326,760,761],{},"When you go to your Discord server, you should now see the bot and be able to chat with it.",[326,763,764],{},[416,765],{"alt":766,"src":767},"Xnapper-2023-06-29-14.22.23.png","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1688049865\u002FXnapper_2023_06_29_14_22_23_91a21d5c62.png",[368,769,771],{"id":770},"changing-discord-bot-settings","Changing Discord bot settings",[773,774,776],"h3",{"id":775},"changing-the-slash-command-and-description","Changing the slash command and description",[326,778,779,780,784,785,788],{},"Your Discord bot responds to a configurable slash command (e.g. ",[781,782,783],"code",{},"\u002Faskbot","). You can set this in the \"Bot command\" section of the Chat Thing Discord settings, along with a description that appears when users type the command in Discord. The command must start with ",[781,786,787],{},"\u002F",", contain only lowercase letters and numbers, and be at least 4 characters long.",[326,790,791],{},"To change these, open the channel settings, make your adjustments and click \"Save\". Your changes will appear in any Discord server where your bot is installed.",[326,793,794],{},[416,795],{"alt":796,"src":797},"Discord bot command settings","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1773771839\u002Fdocs\u002Fdiscord-bot-command.png",[773,799,801],{"id":800},"setting-how-much-channel-history-your-bot-sees","Setting how much channel history your bot sees",[326,803,804],{},"When someone @mentions your bot in a Discord channel, your bot can take a quick look at the most recent messages in that channel before replying. That way, if someone asks a follow-up like \"what does everyone think?\", your bot already has enough context to answer instead of asking what you mean. If the @mention is itself a reply to another message, your bot will also see that specific message it replied to. This only works on the Gateway transport, so the setting won't appear if you're using Legacy. Your bot will automatically translate Discord's @mentions into real names so its replies read naturally.",[326,806,807,808,811],{},"In the channel settings you'll find a slider labelled ",[340,809,810],{},"Ambient context window",". This controls how many recent messages your bot peeks at, anywhere from 0 to 20, with a default of 10. Sliding it down to 0 turns the recent-messages peek off, but your bot will still see the specific message someone replied to when they @mentioned it.",[326,813,814],{},[416,815],{"alt":816,"src":817},"Ambient context window slider","https:\u002F\u002Fres.cloudinary.com\u002Fdjyjvrw5u\u002Fimage\u002Fupload\u002Fv1777999009\u002Fdocs\u002Fdiscord-ambient-context-window.png",[326,819,820,821,825],{},"If you'd like your bot to fetch older or cross-channel history on demand, see the ",[441,822,824],{"href":823},"\u002Fdocs\u002Fdiscord-power-ups","Discord power-ups"," page.",[773,827,829],{"id":828},"switching-between-transports","Switching between transports",[326,831,832],{},"You can change the transport at any time from the channel settings.",[333,834,835,844,859,862],{},[336,836,837,838,840,841,843],{},"After switching, the ",[340,839,411],{}," changes - re-copy it from the channel settings into the ",[340,842,411],{}," field on the general information page of the Discord bot admin and save.",[336,845,846,847,850,851,853,854,858],{},"If you are switching ",[340,848,849],{},"to"," Gateway, make sure the ",[340,852,613],{}," is enabled on the Bot page of the Discord developer portal (see the ",[441,855,857],{"href":856},"#connecting-your-bot-to-discord","callout in the connection steps",").",[336,860,861],{},"After saving, your slash command is re-registered automatically - no further action needed.",[336,863,864],{},"The \"Ambient context window\" slider only appears on the Gateway transport. If you switch to Legacy, the slider is hidden and your bot won't read recent channel messages on @mention.",[773,866,868],{"id":867},"changing-the-discord-bot-icon","Changing the Discord bot icon",[326,870,871],{},"Changing the bot icon can be completed through the Discord bot admin area in the \"General information\" section.",[773,873,875],{"id":874},"changing-the-discord-bot-display-name","Changing the Discord bot display name",[326,877,878],{},"Changing the Discord bot display name can be completed through the Discord bot admin area in the \"Bot\" section.",[368,880,43],{"id":44},[773,882,884],{"id":883},"my-settings-wont-save-and-im-using-the-gateway-transport","My settings won't save and I'm using the Gateway transport",[326,886,887,888,890,891,893],{},"Saving validates that your bot has the ",[340,889,613],{}," enabled. If it's off, the save will fail with an intents-related error. Enable it on the Bot page of the Discord developer portal under ",[340,892,629],{}," and try again.",[773,895,897],{"id":896},"ive-completed-all-the-steps-and-my-discord-bots-not-working","I've completed all the steps and my Discord bot's not working",[326,899,900],{},"The most common issue is a mistake while entering the credentials from Discord into the Chat Thing settings - don't worry, it's easy to do!",[326,902,903,904,906,907,909],{},"Try going back through each step and double checking you have entered the correct credentials in each box. You will need to reset the client secret and bot tokens. After doing this, update your settings and try again. If you're using the ",[340,905,509],{}," transport, also confirm the ",[340,908,613],{}," is enabled.",[773,911,913],{"id":912},"i-cant-save-after-adding-the-interactions-endpoint-in-the-discord-bot-admin","I can't save after adding the interactions endpoint in the Discord bot admin",[326,915,916],{},"This can happen if you haven't updated your channel settings in Chat Thing with the bot secret, public key, and token, or if any one of those is wrong. Check these, save in Chat Thing, and then try again in Discord.",[773,918,920],{"id":919},"my-bot-doesnt-seem-to-know-about-earlier-messages-in-the-channel","My bot doesn't seem to know about earlier messages in the channel",[326,922,923],{},"A few things to check:",[333,925,926,932,938,944,947],{},[336,927,928,929,931],{},"Open your channel settings and check the ",[340,930,810],{}," slider. If it's at 0, your bot won't read recent channel messages on @mention.",[336,933,934,935,630],{},"Your bot only reads as many recent messages as the slider allows (default 10). Anything older than that won't be picked up unless you increase the window or use the ",[441,936,937],{"href":823},"Discord get history power-up",[336,939,940,941,943],{},"Make sure ",[340,942,613],{}," is enabled on the Bot page of the Discord developer portal. Without this, your bot can't read message content at all.",[336,945,946],{},"Make sure your bot has permission to read the channel in Discord (Server Settings -> Roles).",[336,948,949],{},"This feature is Gateway-only. If you're on Legacy, switch transports to use it.",{"title":951,"searchDepth":59,"depth":59,"links":952},"",[953,954,955,956,957,964],{"id":370,"depth":59,"text":371},{"id":381,"depth":59,"text":382},{"id":422,"depth":59,"text":423},{"id":479,"depth":59,"text":480},{"id":770,"depth":59,"text":771,"children":958},[959,960,961,962,963],{"id":775,"depth":21,"text":776},{"id":800,"depth":21,"text":801},{"id":828,"depth":21,"text":829},{"id":867,"depth":21,"text":868},{"id":874,"depth":21,"text":875},{"id":44,"depth":59,"text":43,"children":965},[966,967,968,969],{"id":883,"depth":21,"text":884},{"id":896,"depth":21,"text":897},{"id":912,"depth":21,"text":913},{"id":919,"depth":21,"text":920},"The Discord channel allows you to interact with your bot right in Discord!","md","Create ChatGPT Discord Bots",{"prevPage":149,"nextPage":159},true,"\u002Fdocs\u002Fchannels\u002Fdiscord-channel",{"title":155,"description":970},"docs\u002Fchannels\u002Fdiscord-channel","FDWh4IIQ8GtQqlPwCm_FnuB57WFKsWTkuftEjuQOVoU",{"id":980,"title":139,"body":981,"description":951,"extension":971,"longTitle":988,"meta":989,"navigation":974,"path":990,"position":26,"seo":991,"stem":992,"__hash__":993},"docs\u002Fdocs\u002Fchannels\u002F_index.md",{"type":320,"value":982,"toc":986},[983],[984,985,139],"h1",{"id":145},{"title":951,"searchDepth":59,"depth":59,"links":987},[],null,{},"\u002Fdocs\u002Fchannels\u002F_index",{"title":139,"description":951},"docs\u002Fchannels\u002F_index","zhRufVO10PLybyFEU7F8tqFTCYf5l2m3l5yiEgm0nfE",{"prev":995,"next":996},{"title":152,"slug":153,"position":48,"directory":145},{"title":158,"slug":159,"position":21,"directory":145},1780738924887]