Discord Bots with Edge Functions

Published: 17 January 2023
on channel: Supabase
2k
30

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]


Watch video Discord Bots with Edge Functions online without registration, duration 14 minute 47 second in high hd quality. This video was added by user Supabase 17 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 thousand once and liked it 30 people.