Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

update slap #64

Closed
wants to merge 1 commit into from
Closed

update slap #64

wants to merge 1 commit into from

Conversation

Kamiikrazy
Copy link
Contributor

No description provided.

Copy link
Collaborator

@StrangeEcho StrangeEcho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

session isn’t a attribute of our current bot class. And target isn’t a valid name in the command. Revise and commit again.

url="https://api.waifu.pics/sfw/slap"
) as resp:
await ctx.send(
embed=discord.Embed(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be disnake.Embed(...) to maintain consistency

await ctx.send(embed=embed2)
async def slap(self, ctx, member: Member = None):
"""slap someone"""
async with self.bot.session.get(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bot instance doesn't have a session variable like @Yat-o pointed out, though we are working on reusing the aiohttp.ClientSession() instance.

Copy link
Collaborator

@Robin5605 Robin5605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the following issues I have outlined in the comments.

@Pandabweer Pandabweer linked an issue Jan 6, 2022 that may be closed by this pull request
@Pandabweer Pandabweer requested review from Pandabweer and removed request for Pandabweer January 6, 2022 15:17
@Pandabweer Pandabweer added the enhancement New feature or request label Jan 6, 2022
@Pandabweer Pandabweer marked this pull request as draft January 9, 2022 18:14
@Pandabweer
Copy link
Collaborator

Denied PR because of lack of attention, i suggest finishing on PR before opening a new one.

@Pandabweer Pandabweer closed this Jan 9, 2022
@Kamiikrazy Kamiikrazy deleted the patch-3 branch January 15, 2022 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GIF Commands (like slap and those)
4 participants