8000 upload_file() issues · Issue #47 · errbotio/err-backend-discord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
upload_file() issues #47
Closed
Closed
@GrantBirki

Description

@GrantBirki

upload_file() issue

When trying to upload a simple txt file to Discord using the DiscordBackend the following error arises as seen below

My code:

from errbot import BotPlugin, botcmd

class Test(BotPlugin):

    @botcmd
    def file(self, msg, args):

        self._bot.upload_file(
            msg,
            'plugins/test/test.txt'
        )

Discord Output:

> !file

Computer says nooo. See logs for details:
'Client' object has no attribute 'send_file'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0