Skip to content

Commit e719bd2

Browse files
committed
Merge branch 'main' into production
2 parents 9976076 + 5f13d1b commit e719bd2

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

docs/extensions/commands/prefixed-commands.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ async def on_message(message):
9191
import discord
9292
from discord.ext import commands
9393

94-
bot = commands.Bot(command_prefix="!")
94+
intents = discord.Intents.default()
95+
intents.message_content = True
96+
97+
bot = commands.Bot(command_prefix="!", intents=intents)
9598

9699
@bot.command()
97100
async def ping(ctx):
@@ -183,7 +186,10 @@ import discord
183186
from discord.ext import commands # Import the commands extension
184187
# discord.ext.commands are not the same as discord.commands!
185188

186-
bot = commands.Bot(command_prefix="!") # You can change the command prefix to whatever you want.
189+
intents = discord.Intents.default() #Defining intents
190+
intents.message_content = True # Adding the message_content intent so that the bot can read user messages
191+
192+
bot = commands.Bot(command_prefix="!", intents=intents) # You can change the command prefix to whatever you want.
187193

188194
@bot.command() # This is the decorator we use to create a prefixed command.
189195
async def ping(ctx): # This is the function we will use to create the command.

docs/getting-started/hosting-your-bot.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ There are three types of hosts.
6565

6666
:::danger
6767

68-
Make sure you choose a hosting provider you trust. If you need, you can ask around in communities
69-
or even [Pycord's official support server](https://pycord.dev/discord) for trusted hosts. Just make
68+
Make sure you choose a hosting provider you trust. Also make
7069
sure the hosting provider you're looking at has good reviews on public forums. Googling along the
7170
lines of "[host] review" should do the trick. A provider you don't trust can compromise your token.
7271

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"react": "17.0.2",
4040
"react-dom": "17.0.2",
4141
"react-twemoji": "^0.5.0",
42-
"sass": "1.62.1",
43-
"webpack": "^5.84.1",
42+
"sass": "1.63.3",
43+
"webpack": "^5.86.0",
4444
"yarn": "^1.22.19"
4545
},
4646
"devDependencies": {
@@ -54,7 +54,7 @@
5454
"remark-mdx": "^2.3.0",
5555
"remark-preset-lint-consistent": "^5.1.2",
5656
"remark-preset-lint-recommended": "^6.1.3",
57-
"typescript": "5.0.4"
57+
"typescript": "5.1.3"
5858
},
5959
"resolutions": {
6060
"@types/react": "17.0.2"

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8238,10 +8238,10 @@ sass-loader@^10.1.1:
82388238
schema-utils "^3.0.0"
82398239
semver "^7.3.2"
82408240

8241-
sass@1.62.1:
8242-
version "1.62.1"
8243-
resolved "https://registry.yarnpkg.com/sass/-/sass-1.62.1.tgz#caa8d6bf098935bc92fc73fa169fb3790cacd029"
8244-
integrity sha512-NHpxIzN29MXvWiuswfc1W3I0N8SXBd8UR26WntmDlRYf0bSADnwnOjsyMZ3lMezSlArD33Vs3YFhp7dWvL770A==
8241+
sass@1.63.3:
8242+
version "1.63.3"
8243+
resolved "https://registry.yarnpkg.com/sass/-/sass-1.63.3.tgz#527746aa43bf2e4eac1ab424f67f6f18a081061a"
8244+
integrity sha512-ySdXN+DVpfwq49jG1+hmtDslYqpS7SkOR5GpF6o2bmb1RL/xS+wvPmegMvMywyfsmAV6p7TgwXYGrCZIFFbAHg==
82458245
dependencies:
82468246
chokidar ">=3.0.0 <4.0.0"
82478247
immutable "^4.0.0"
@@ -8930,10 +8930,10 @@ typedarray@^0.0.6:
89308930
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
89318931
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
89328932

8933-
typescript@5.0.4:
8934-
version "5.0.4"
8935-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
8936-
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==
8933+
typescript@5.1.3:
8934+
version "5.1.3"
8935+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.3.tgz#8d84219244a6b40b6fb2b33cc1c062f715b9e826"
8936+
integrity sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==
89378937

89388938
ua-parser-js@^0.7.30:
89398939
version "0.7.33"
@@ -9533,10 +9533,10 @@ webpack-sources@^3.2.2, webpack-sources@^3.2.3:
95339533
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
95349534
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
95359535

9536-
webpack@^5.73.0, webpack@^5.84.1:
9537-
version "5.84.1"
9538-
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.84.1.tgz#d4493acdeca46b26ffc99d86d784cabfeb925a15"
9539-
integrity sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg==
9536+
webpack@^5.73.0, webpack@^5.86.0:
9537+
version "5.86.0"
9538+
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.86.0.tgz#b0eb81794b62aee0b7e7eb8c5073495217d9fc6d"
9539+
integrity sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==
95409540
dependencies:
95419541
"@types/eslint-scope" "^3.7.3"
95429542
"@types/estree" "^1.0.0"

0 commit comments

Comments
 (0)