convert a bunch of .Username accesses to proper access

This commit is contained in:
ouwou committed 2023-06-14 02:04:39 -04:00
1 parent 878616e2ef
commit 00dddf410e
9 files changed
+19 -18

No files matched your search

+2 -1
View File
@@ -117,12 +117,13 @@ void Completer::CompleteMentions(const Glib::ustring &term) {
if (id == me) continue;
const auto author = discord.GetUser(id);
if (!author.has_value()) continue;
// todo improve the predicate here
if (!StringContainsCaseless(author->Username, term)) continue;
if (i++ > 15) break;
auto entry = CreateEntry(author->GetMention());
entry->SetText(author->Username + "#" + author->Discriminator);
entry->SetText(author->GetUsername());
if (channel_id.IsValid()) {
const auto chan = discord.GetChannel(channel_id);