errbotio / err-backend-discord

Backend for Discord for Errbot
GNU General Public License v3.0
23 stars 22 forks source link

upload_file() issues #47

Closed GrantBirki closed 2 years ago

GrantBirki commented 3 years ago

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'
nzlosh commented 2 years ago

Thanks for reporting this, I'll try to replicate the issue.