Skip to content

[Docs]: Voice Recording Example problem in the guide #1823

Description

@raunaksaigal

Page

https://github.com/interactions-py/interactions.py/blob/stable/docs/src/Guides/23%20Voice.md#voice-recording

Problem description

In the example of the usage of the voice recording feature there should be specific different files created for different user which gets saved by their user ids

await ctx.send(files=[interactions.File(file, file_name="user_id.mp3") for user_id, file in voice_state.recorder.output.items()])

The problem lies in the name of the file file_name="user_id.mp3" which should use the formatted string as such ile_name=f"{user_id}.mp3"

Suggested changes

await ctx.send(files=[interactions.File(file, file_name=f"{user_id}.mp3") for user_id, file in voice_state.recorder.output.items()])

I can create a PR if the issue gets assigned to me :)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions