Giter Site home page Giter Site logo

Replace :setContent() and :setEmbed() into :update() that supports only one http request to make updates everything about mina-discord-bot HOT 8 CLOSED

qwreey avatar qwreey commented on August 25, 2024
Replace :setContent() and :setEmbed() into :update() that supports only one http request to make updates everything

from mina-discord-bot.

Comments (8)

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.apexLegends

this point

replyMsg:setEmbed(apexLegendsEmbed:embed(apexLegendsRequest.fetch(rawArgs,ACCOUNTData)));
replyMsg:setContent("Apex Legends Api 로 부터 가져온 결과입니다 (사용자 아이디는 개인정보 보호를 위해 제거되었습니다)");

are changed to

replyMsg:update {
	embed = apexLegendsEmbed:embed(apexLegendsRequest.fetch(rawArgs,ACCOUNTData));
	content = "Apex Legends Api 로 부터 가져온 결과입니다 (사용자 아이디는 개인정보 보호를 위해 제거되었습니다)";
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.covid19

this point

replyMsg:setContent("오늘 기준의 코로나 현황입니다");
replyMsg:setEmbed(covid19Embed:embed(today,yesterday))

are changed to

replyMsg:update {
	embed = covid19Embed:embed(today,yesterday);
	content = "오늘 기준의 코로나 현황입니다";
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.engquote

this point

replyMsg:setEmbed(engquoteEmbed:embed(engquoteRequest.fetch()));
replyMsg:setContent("영어 명언을 가져왔습니다");

are changed to

replyMsg:update {
	embed = engquoteEmbed:embed(engquoteRequest.fetch());
	content = "영어 명언을 가져왔습니다";
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.youtube

this point

replyMsg:setContent(("유튜브에서 '%s' 를 검색한 결과입니다"):format(rawArgs));
replyMsg:setEmbed(
	youtubeEmbed:embed(
		rawArgs,
		youtubeSearch.searchFromYoutube(rawArgs,ACCOUNTData)
	)
);

are changed to

replyMsg:update {
	embed = youtubeEmbed:embed(
		rawArgs,
		youtubeSearch.searchFromYoutube(rawArgs,ACCOUNTData)
	);
	content = ("유튜브에서 '%s' 를 검색한 결과입니다"):format(rawArgs);
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.naverDict

this point

replyMsg:setEmbed(embed.embed);
replyMsg:setContent(embed.content);

are changed to

replyMsg:update {
	embed = embed.embed;
	content = embed.content;
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.music

this point

replyMsg:setEmbed(player:embedfiy());
replyMsg:setContent("현재 이 서버의 플레이리스트입니다");

are changed to

replyMsg:update {
	embed = player:embedfiy();
	content = "현재 이 서버의 플레이리스트입니다";
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

at dev_beta:commands.korquote

this point

replyMsg:setEmbed(korquoteEmbed:embed(korquoteRequest.fetch()));
replyMsg:setContent("한글 명언을 가져왔습니다");

are changed to

replyMsg:update {
	embed = korquoteEmbed:embed(korquoteRequest.fetch());
	content = "한글 명언을 가져왔습니다";
};

from mina-discord-bot.

qwreey avatar qwreey commented on August 25, 2024

This issue was solved by #15
Close away!

from mina-discord-bot.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.