File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ A Python package to retrieve detailed Spotify album images for Discord integrati
1010``` py
1111import discord
1212from discord.ext import commands
13- from discordify import spotify
13+ from discordify import Spotify
1414
1515bot = commands.Bot(
1616 command_prefix = " ," ,
@@ -21,7 +21,7 @@ bot = commands.Bot(
2121@bot.command (name = " spotify" )
2222async def spotif (ctx : commands.Context, member : discord.Member = None ):
2323 member = member or ctx.author
24- client = spotify. Spotify(bot = bot, member = member)
24+ client = Spotify(bot = bot, member = member)
2525 content, image, view = await client.get()
2626 await ctx.reply(content = content, file = image, view = view)
2727
Original file line number Diff line number Diff line change 11import discord
22from discord .ext import commands
3- from discordify import spotify
3+ from discordify import Spotify
44
5- bot = commands .Bot (command_prefix = "," )
5+ bot = commands .Bot (
6+ command_prefix = "," ,
7+ intents = discord .Intents .all (),
8+ allowed_mentions = discord .AllowedMentions .none ()
9+ )
610
711@bot .command (name = "spotify" )
812async def spotif (ctx : commands .Context , member : discord .Member = None ):
913 member = member or ctx .author
10- client = spotify . Spotify (bot = bot , member = member )
14+ client = Spotify (bot = bot , member = member )
1115 content , image , view = await client .get ()
1216 await ctx .reply (content = content , file = image , view = view )
1317
You can’t perform that action at this time.
0 commit comments