badys.blogg.se

Discord bot tupper
Discord bot tupper






discord bot tupper

PostBuilder.AddField("Home Server Test", "Some Text Here ", False)

discord bot tupper

The method is pretty long, so here's a very simplified example of the code I'm using to create the embeds: Dim BotHomeServer As = BotClient.GetGuild(Convert.ToUInt64(HOME_SERVER_ID))ĭim TargetServer As = BotClient.GetGuild(Convert.ToUInt64(TARGET_SERVER_ID))ĭim PostingChannel As = TargetServer.GetTextChannel(Convert.ToUInt64(POST_CHANNEL_ID))ĭim HomeEmote As Discord.Emote = Await BotHomeServer.GetEmoteAsync(EMOTE_ID_FROM_HOME_SERVER)ĭim TargetEmote As Discord.Emote = Await TargetServer.GetEmoteAsync(EMOTE_ID_FROM_TARGET_SERVER)ĭim PostBuilder As New Discord.EmbedBuilder

discord bot tupper discord bot tupper

Those emotes that I include which are loaded in the client/target server show up correctly, but those that are from the bot's home server only display the emote name: Unfortunately, when I try to include emotes from the bot's home server in the embed, all I get are the emote names and no images:Īfter fighting with it a bit, I tried including emotes from both servers in the same embed and I get "mixed" results. So, I decided to create a new Discord server ( henceforth referred to as the bot's "home" server) in which to load these emotes for use in the "client" or "target" server. I'm still in the beginning stages of this project, and I foresee the need for several "custom" emotes for some of the embeds I'll be using. However, I realized that, if my bot makes it out into the wild, I can't really be installing these emotes on every server out there. Initially, I had uploaded the emotes to a server I was testing in and everything worked great: This includes certain character ability information in which I wish to include some emotes to make it a bit more aesthetically pleasing. One of the ( overly-ambitious?) many features of my bot will be posting player data from the mobile game, Star Wars: Galaxy of Heroes into an embed. I'm working on a Discord bot using Discord.Net 2.2.0 and written in VB.NET.








Discord bot tupper