Skip to content

Enhancement: Allow Context.send to utilize 'source_only' argument for PartialUser.send_message #509

@ImitativeRemi

Description

@ImitativeRemi

Summary

For sending chat messages using ctx.send for a command function, currently it only uses the sender and message arguments, and does not pass any other arguments to the send_message function.

return await self.channel.send_message(sender=self.bot.bot_id, message=new)

It would be neat to use the 'source_only' argument such that custom chat bot accounts can have their messages not appear in other people's chat during a Shared Chat session.

However, I'm not sure on if the tokens that are generated from the Quickstart are the required 'App Access Token' that's required for using the 'for_source_only' parameter in the Send Chat Message API:

https://discuss.dev.twitch.com/t/adding-for-source-only-parameter-for-shared-chat-and-a-behavior-update-for-send-chat-message-api-endpoint-may-19-2025/63261

Basic Examples

No response

Drawbacks and Impact

No response

Unresolved questions

No response

Metadata

Metadata

Assignees

Labels

3.xTwitchIO 3.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions