diff --git a/docs/extensions/commands/prefixed-commands.mdx b/docs/extensions/commands/prefixed-commands.mdx index 90fd8ad4..2de69a0b 100644 --- a/docs/extensions/commands/prefixed-commands.mdx +++ b/docs/extensions/commands/prefixed-commands.mdx @@ -91,7 +91,10 @@ async def on_message(message): import discord from discord.ext import commands -bot = commands.Bot(command_prefix="!") +intents = discord.Intents.default() +intents.message_content = True + +bot = commands.Bot(command_prefix="!", intents=intents) @bot.command() async def ping(ctx): @@ -183,7 +186,10 @@ import discord from discord.ext import commands # Import the commands extension # discord.ext.commands are not the same as discord.commands! -bot = commands.Bot(command_prefix="!") # You can change the command prefix to whatever you want. +intents = discord.Intents.default() #Defining intents +intents.message_content = True # Adding the message_content intent so that the bot can read user messages + +bot = commands.Bot(command_prefix="!", intents=intents) # You can change the command prefix to whatever you want. @bot.command() # This is the decorator we use to create a prefixed command. async def ping(ctx): # This is the function we will use to create the command. diff --git a/docs/getting-started/hosting-your-bot.mdx b/docs/getting-started/hosting-your-bot.mdx index 788da3f8..b5764508 100644 --- a/docs/getting-started/hosting-your-bot.mdx +++ b/docs/getting-started/hosting-your-bot.mdx @@ -65,8 +65,7 @@ There are three types of hosts. :::danger -Make sure you choose a hosting provider you trust. If you need, you can ask around in communities -or even [Pycord's official support server](https://pycord.dev/discord) for trusted hosts. Just make +Make sure you choose a hosting provider you trust. Also make sure the hosting provider you're looking at has good reviews on public forums. Googling along the lines of "[host] review" should do the trick. A provider you don't trust can compromise your token. diff --git a/package.json b/package.json index fdd6624e..7f3d1e62 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,8 @@ "react": "17.0.2", "react-dom": "17.0.2", "react-twemoji": "^0.5.0", - "sass": "1.62.1", - "webpack": "^5.84.1", + "sass": "1.63.3", + "webpack": "^5.86.0", "yarn": "^1.22.19" }, "devDependencies": { @@ -54,7 +54,7 @@ "remark-mdx": "^2.3.0", "remark-preset-lint-consistent": "^5.1.2", "remark-preset-lint-recommended": "^6.1.3", - "typescript": "5.0.4" + "typescript": "5.1.3" }, "resolutions": { "@types/react": "17.0.2" diff --git a/yarn.lock b/yarn.lock index 03274d1b..6cef8a46 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8238,10 +8238,10 @@ sass-loader@^10.1.1: schema-utils "^3.0.0" semver "^7.3.2" -sass@1.62.1: - version "1.62.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.62.1.tgz#caa8d6bf098935bc92fc73fa169fb3790cacd029" - integrity sha512-NHpxIzN29MXvWiuswfc1W3I0N8SXBd8UR26WntmDlRYf0bSADnwnOjsyMZ3lMezSlArD33Vs3YFhp7dWvL770A== +sass@1.63.3: + version "1.63.3" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.63.3.tgz#527746aa43bf2e4eac1ab424f67f6f18a081061a" + integrity sha512-ySdXN+DVpfwq49jG1+hmtDslYqpS7SkOR5GpF6o2bmb1RL/xS+wvPmegMvMywyfsmAV6p7TgwXYGrCZIFFbAHg== dependencies: chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0" @@ -8930,10 +8930,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" - integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== +typescript@5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.3.tgz#8d84219244a6b40b6fb2b33cc1c062f715b9e826" + integrity sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw== ua-parser-js@^0.7.30: version "0.7.33" @@ -9533,10 +9533,10 @@ webpack-sources@^3.2.2, webpack-sources@^3.2.3: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@^5.73.0, webpack@^5.84.1: - version "5.84.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.84.1.tgz#d4493acdeca46b26ffc99d86d784cabfeb925a15" - integrity sha512-ZP4qaZ7vVn/K8WN/p990SGATmrL1qg4heP/MrVneczYtpDGJWlrgZv55vxaV2ul885Kz+25MP2kSXkPe3LZfmg== +webpack@^5.73.0, webpack@^5.86.0: + version "5.86.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.86.0.tgz#b0eb81794b62aee0b7e7eb8c5073495217d9fc6d" + integrity sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^1.0.0"