Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(message): add call field #1195

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

spifory
Copy link
Collaborator

@spifory spifory commented Jun 14, 2024

Summary

Tested with:

from nextcord import IntegrationType, Intents, Interaction, InteractionContextType, Message, utils
from nextcord.ext.commands import Bot

bot = Bot(intents=Intents(guilds=True, message_content=True, messages=True, members=True))

@bot.message_command(contexts=[InteractionContextType.bot_dm, InteractionContextType.private_channel], integration_types=[IntegrationType.user_install])
async def call_info(inter: Interaction, message: Message):
    assert message.call is not None
    assert message.call.ended_timestamp is not None

    return await inter.send(f"u: {','.join([p.display_name for p in message.call.participants])}\nts: {utils.format_dt(message.call.ended_timestamp)}")


bot.run(...)

image
image

This is a Code Change

  • I have tested my changes.
  • I have updated the documentation to reflect the changes.
  • I have run task pyright and fixed the relevant issues.

@spifory spifory added p: medium Priority: medium - should be worked on in the near future 3.0 The issue/PR should go for the 3.0 release t: api coverage Type: api coverage - this adds code to cover the discord API labels Jun 14, 2024
@spifory spifory added the s: awaiting review Status: the issue or PR is awaiting reviews label Jun 14, 2024
nextcord/message.py Outdated Show resolved Hide resolved
@ooliver1 ooliver1 linked an issue Jun 24, 2024 that may be closed by this pull request
@ooliver1 ooliver1 added p: high Priority: high - should be worked on as soon as reasonable and removed p: medium Priority: medium - should be worked on in the near future labels Jun 24, 2024
nextcord/message.py Show resolved Hide resolved
nextcord/message.py Outdated Show resolved Hide resolved
@spifory spifory requested a review from xXenvy June 29, 2024 18:50
@spifory spifory marked this pull request as draft June 29, 2024 18:51
@spifory
Copy link
Collaborator Author

spifory commented Jun 29, 2024

Forgot to mark this as a draft initially as it hasn't been merged by Discord yet

@teaishealthy teaishealthy added the s: waiting for discord status: the issue requires changes to the documentation or behaviour before it can be completed. label Jul 4, 2024
nextcord/message.py Outdated Show resolved Hide resolved
nextcord/message.py Outdated Show resolved Hide resolved
@teaishealthy teaishealthy removed the s: waiting for discord status: the issue requires changes to the documentation or behaviour before it can be completed. label Jul 4, 2024
@spifory spifory requested review from teaishealthy and removed request for xXenvy September 7, 2024 16:55
@spifory spifory marked this pull request as ready for review September 7, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 The issue/PR should go for the 3.0 release p: high Priority: high - should be worked on as soon as reasonable s: awaiting review Status: the issue or PR is awaiting reviews t: api coverage Type: api coverage - this adds code to cover the discord API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message.call field
5 participants