Slash Commands[0] are a convenient way to build interactive bots into Discord. They work via webhook requests and therefore can be conveniently handled with Supabase Edge Functions[1].
Find the code:
️ Presented by Thor Schaeff (
Chapters
00:00 Intro
00:27 Project Setup
02:36 Discord Slash Commands Intro
03:54 Create a new application in the Discord Developer Portal
04:48 Create new Edge Function and set env vars
06:15 Register new Slash Command with Discord
08:08 Invite Bot to Discord Server
10:00 Handle Discord Webhook events with Sift
12:36 Serve Function locally and tunnel with ngrok
15:20 Set up the Webhook URL in Discord
16:05 Test Discord Slash Commands
About Edgy Edge Functions
Edgy Edge Functions is a video series where we explore Supabase Edge Functions[1] and Deno[2] functionality and features.
If there's something you'd like to learn about, please open an issue[3] and let me know on this Tweet thread[4].
Thanks for stopping by! Denosaur and I will see you soon \o/
[0]
[1]
[2]
[3]
[4]
Смотрите видео Discord Bots with Edge Functions онлайн без регистрации, длительностью 14 минут 47 секунд в хорошем hd качестве. Это видео добавил пользователь Supabase 17 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2 тысяч раз и оно понравилось 30 людям.